Documentation

crm.requisite.add

crm.requisite.add(fields)

Creates new entity details.

Parameters

Parameter Description
fieldsSet of fields - is an array ("field"=>"value"[, ...]), containing values of address fields. Where "field" can have values, returned by the crm.requisite.fields method.
Note: to find out the required field format, execute the method crm.requisite.fields to view the retrieved field format.

Example

BX24.callMethod(
    "crm.requisite.add", 
    {
        fields:
        { 
            "ENTITY_TYPE_ID":4,
			"ENTITY_ID":8,
			"PRESET_ID":1,
			"NAME":"Details",
			"XML_ID":"5e4641fd-1dd9-11e6-b2f2-005056c00008",
			"ACTIVE":"Y",
			"SORT":100			
        }
    }, 
    function(result) 
    {
        if(result.error())
            console.error(result.error());
        else
            console.info("Entity details are created with ID" + result.data());
    }
);



User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020