crm.requisite.update
crm.requisite.update(id, fields, params)
This method updates existing requisites.
Function parameters
Parameter | Description |
---|---|
id | Company ID. |
fields | Set of fields - is a array("updated field"=>"value"[, ...]) , where “updated field” can have values, returned by 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
var id = prompt("Enter ID"); BX24.callMethod( "crm.requisite.update", { id: id, fields: { "NAME": "Requisite (archive)", "SORT" : 200, "ACTIVE": "N" } }, function(result) { if(result.error()) console.error(result.error()); else { console.info(result.data()); } } );
© «Bitrix24», 2001-2024