Documentation

crm.orderentity.add

Scope: catalog Permissions to execute: for all

crm.orderentity.add(fields)

Method adds order link to CRM entity.

Note: Presently, order can be linked only to a Deal.

Returns order link resource on success.

Parameters

ParameterType Description
fieldsobject Fields corresponding to the available list of fields.

Example

BX24.callMethod(
    'crm.orderentity.add', 
    {
	  fields: {
		  ownerId: 9,
		  orderId: 329,
		  ownerTypeId: 2		  
		}
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});



© «Bitrix24», 2001-2024