SPA item events
Scope: catalog Permissions to execute: for all
There are three event types: add, update and delete an SPA.
Events are triggered when actions are performed with all SPA types. You have to filter processed event by a required SPA type.
The list of available event will contain the following set of events:
onCrmItemAdd
- add item of any SPA.onCrmItemUpdate
- update item of any APS.onCrmItemDelete
- delete item of any SPA.
There is a theoretical possibility to subscribe to item events for a specific SPA. Name for such events look as onCrmDynamicItemAdd_{entityTypeId}
. Webhook UI doesn't show them, but such events can work when subscribing via applications
Event handler will receive data in the following format:
[ 'FIELDS' => [ 'ID' => $itemId, 'ENTITY_TYPE_ID' => $entityTypeId, ], ]
where $itemId
- item ID, and $entityTypeId
- CRM entity type ID.
© «Bitrix24», 2001-2024