crm.requisite.add
crm.requisite.add(fields)
Creates new entity details.
Parameters
Parameter | Description |
---|---|
fields | Set 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()); } );
© «Bitrix24», 2001-2024