crm.deal.delete
Scope: crm Permissions: for all
crm.deal.delete(id)
Deletes a specified deal and all the associated objects: activities, history, timeline activities and others. Objects are deleted, if they aren't associated with other entities/elements. In case they are associated with such objects, the method deletes only the binding to the deleted deal.
Parameters
Parameter | Description |
---|---|
id | The deal ID. |
Example
<script type="text/javascript"> var id = prompt("Enter the deal ID"); BX24.callMethod( "crm.deal.delete", { id: id }, function(result) { if(result.error()) console.error(result.error()); else console.info(result.data()); } ); </script>
© «Bitrix24», 2001-2024