crm.orderentity.getFields
Scope: catalog Permissions to execute: for all
crm.orderentity.getFields()
Method returns fields for linking order to an entity.
Returned fields
Field | Description | Type | Note |
---|---|---|---|
ownerId | Entity ID with linked order. For example, deal ID. | integer | Read only, required field. |
orderId | Order ID. | integer | Read only, required field. |
ownerTypeId | Entity type ID with linked order. For example, if entity type - Deal, entity identifier type - 2. You can find out type identifiers available for linking the order using the method crm.enum.getOrderOwnerTypes. | integer | Read only, required field. |
Parameters
No parameters.
Example
BX24.callMethod( 'crm.orderentity.getFields', {}, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024