Documentation

crm.lead.delete

crm.lead.delete(id)

Deletes the specified lead and all the associated objects.

Parameters

Parameter Description
id Lead ID.

Example

<script type="text/javascript">
	var id = prompt("Enter ID");
		BX24.callMethod(
			"crm.lead.delete", 
			{ id: id }, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
					console.info(result.data());
			}
		);	
</script>


© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019