imopenlines.crm.lead.create
Scope: imopenlines Permissions: for all
This method creates a lead for CRM.
Parameters
Parameter | Example | Required | Description |
---|---|---|---|
CHAT_ID | 1987 | Yes | Chat ID. |
Method call and response
JavaScript
BX.callMethod( 'imopenlines.crm.lead.create', { CHAT_ID: 1988 }, function(result) { if(result.error()) { console.error(result.error().ex); } else { console.log(result.data()); } );
Response example:
true
Possible error codes
Code | Description |
---|---|
ACCESS_DENIED | Current user doesn't have access to the specified chat. |
CHAT_TYPE | Specified chat isn't an Open Channel. |
CHAT_ID | Chat ID is incorrect. |
© «Bitrix24», 2001-2024