crm.status.delete
Scope: catalog Permissions to execute: for all
crm.status.delete(id, params)
Deletes directory elements.
Parameters
Parameter | Description |
---|---|
id | Directory element ID. (Required) |
params | Set of parameters. FORCED - flag to forcibly delete system elements. Default value - N. In case deleted element is a system element, such element will be deleted. If set as Y, this element will be deleted in any case. For deleting a system element, use the second example listed in description. |
Example
Example for deleting a simple element
var id = prompt("Enter custom item ID"); BX24.callMethod( "crm.status.delete", { id: id }, function(result) { if(result.error()) console.error(result.error()); else console.info(result.data()); } );
Example for deleting a system element
var id = prompt("Enter custom item ID"); BX24.callMethod( "crm.status.delete", { id: id, params:{ FORCED: "Y" } }, function(result) { if(result.error()) console.error(result.error()); else console.info(result.data()); } );
© «Bitrix24», 2001-2024