Documentation

Events

Starting from CRM version 21.900.0 there are three new event types available:

  • onCrmDocumentGeneratorDocumentAdd - create new document.
  • onCrmDocumentGeneratorDocumentUpdate - edit document.
  • onCrmDocumentGeneratorDocumentDelete - delete document.

Event handler receives data in the following format:

[
    'FIELDS' => [
        'ID' => $documentId,
        'ENTITY_TYPE_ID' => $entityTypeId,
        'ENTITY_ID' => $entityId,
    ],
]

where

  • $documentId - document ID.
  • $entityTypeId - CRM entity type ID.
  • $entityId - item ID.


© «Bitrix24», 2001-2024