TaskObject.<Task 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:

You can use it to mark/unmark for deletion. The object isn't deleted from the database. Final deleting the marked tasks is executed when the marked objects are deleted.

Availability:

Server, thick client, external connection.

Note:

Using this method involves initiating an event BeforeWrite, as the changed property DeletionMark is being saved.
If object is modified, then executing the method returns an exception.

Example:

Object.SetDeletionMark(True);

    

1C:Enterprise Developer's Community