What's New
General Information
crm.deal.add
crm.deal.delete
crm.deal.fields
crm.deal.get
crm.deal.list
crm.deal.productrows.get
crm.deal.productrows.set
crm.deal.update
crm.deal.recurring.add
crm.deal.recurring.delete
crm.deal.recurring.expose
crm.deal.recurring.fields
crm.deal.recurring.get
crm.deal.recurring.list
crm.deal.recurring.update
crm.deal.userfield.add
crm.deal.userfield.get
crm.deal.userfield.update
crm.deal.userfield.delete
crm.deal.userfield.list
crm.deal.contact.add
crm.deal.contact.fields
crm.deal.contact.items.get
crm.deal.contact.items.set
crm.deal.contact.items.delete
crm.deal.contact.delete
CRM Constants
Table Structure
crm.deal.delete
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-2023
Up