DocumentObject.<Document name>.SetDeletionMark

Syntax:

SetDeletionMark(<DeletionMark>)

Parameters:

<DeletionMark> (required)

Type: Boolean.
Deletion mark set / removal flag.
True indicates the mark is set; False indicates the mark is removed.

Description:

Sets/clears document deletion mark. This does not delete the document from the database. Final deletion of marked documents occurs when you delete documents.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

If document is posted, using this method causes the posting is canceled.
If object is modified, then executing the method returns an exception.

Example:

If DeletedList.FindByValue(ExpenseBill.Number) Then
    ExpenseBill.SetDeletionMark(True);
EndIf
;


    

1C:Enterprise Developer's Community