crm.lead.contact.items.get
crm.lead.contact.items.get(id)
Returns set of contacts, linked with specified lead.
Parameter
Parameter | Description | Available from version |
---|---|---|
id | Lead ID. |
Returns array with objects, each containing the following fields:
Field | Description |
---|---|
CONTACT_ID | Contact identifier |
SORT | Sorting index |
ROLE_ID | Role identifier (reserved) |
IS_PRIMARY | Flags as primary contact |
Example
var id = prompt("Enter lead ID"); BX24.callMethod( "crm.lead.contact.items.get", { id: id }, function(result) { if (result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix24», 2001-2024