Documentation

crm.lead.contact.items.delete

crm.lead.contact.items.delete(id)

Clears set of contacts linked with specified lead.

Parameters

Parameter Description Available from version
id Lead identifier.

Example

var id = prompt("Enter lead ID");

BX24.callMethod(
    "crm.lead.contact.items.delete",
    {
        id: id
    },
    function(result)
    {
        if (result.error())
        {
            console.info("Cannot clear set of contacts for lead");
            console.error(result.error());
        }
        else
        {
            console.info("All contacts for lead deleted successfully");
            console.dir(result.data());
        }
    }
);


© «Bitrix24», 2001-2024