ChartOfAccountsObject.<Chart of accounts name>.SetDeletionMark
Syntax:
Parameters:
<DeletionMark> (required)
Deletion mark set / removal flag.
True indicates the mark is set; False indicates the mark is removed.
<IncludingSubordinates> (optional)
If the parameter is set to True, then they will be flagged for deletion, except for the current item with all its subordinate items in the current account and in all subordinate accounts.
If the parameter is set to False, only this item is marked for deletion.
Default value: True.
Description:
Availability:
Note:
If object is modified, then executing the method returns an exception.
Example:
Object.SetDeletionMark(True,True); |