SPA stages
Scope: catalog Permissions to execute: for all
Handling SPA stages is performed using set of methods crm.status.*
ENTITY_ID
ENTITY_ID
field for SPA stages has the following format: DYNAMIC_{entityTypeId}_STAGE_{categoryId}
,
где:
{entityTypeId}
- SPA CRM entity type ID;{categoryId}
- stage pipeline ID.
STATUS_ID
STATUS_ID
field for SPA stages must have prefix DT{entityTypeId}_{categoryId}
,
где
{entityTypeId}
- SPA CRM entity type ID{categoryId}
- stage pipeline ID
Example
crm.status.add({fields})
The parameter fields
must have the following format in a new SPA stage with ID 135 inside pipeline with ID 20:
{ "fields": { "COLOR": "#1111AA", "NAME": "My new stage", "SORT": 250, "ENTITY_ID": "DYNAMIC_135_STAGE_20", "STATUS_ID": "DT135_20:MY_STAGE_REST", } }
© «Bitrix24», 2001-2024