The event is called after a task was deleted.
|FIELDS_BEFORE||Specifies an array of the task fields before the event has occurred. This field may potentially be set to undefined if no fields had been available before the task was deleted.|
|FIELDS_AFTER||Specifies the task fields after the event has occurred. This field is always undefined if the task has been deleted successfully (see the example below).|
|IS_ACCESSIBLE_BEFORE||Specifies if the task was available for reading before the event has
occurred. It can be one of the following values:
|IS_ACCESSIBLE_AFTER||Specifies if the task is available for reading after the event has
occurred. Although the following values are defined for this field, it
cannot be Y if the task has been deleted successfully.
$arEventFields = array( 'FIELDS_BEFORE' => array('ID' => $taskId), // the ID of the deleted task 'FIELDS_AFTER' => 'undefined', // no fields available because the task was nuked 'IS_ACCESSIBLE_BEFORE' => 'undefined', // task access permission was not checked 'IS_ACCESSIBLE_AFTER' => 'N' // the task is not available for reading now (deleted successfully) );
© «Bitrix24», 2001-2022