Call the CRM Entity Selection Dialog BX24.selectCRM
BX24.selectCRM({entityType: value, multiple: true, value:value}): void;
The function BX24.selectCRM invokes the system dialog for selecting a CRM entity.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
entityType |
Which types of objects to display in the dialog. Possible values:
|
|
multiple |
Whether multiple objects can be selected. Default is |
|
value |
Which objects to initially add to the selected in the dialog. Works only if |
What the handler receives:
{
"lead": [
{
"id": "L_1348",
"type": "lead",
"place": "lead",
"title": "Mint Guest #2 - Open Line Bitrix",
"desc": "Guest",
"url": "/crm/lead/show/1348/"
}
],
"contact": [
{
"id": "C_2",
"type": "contact",
"place": "contact",
"title": "Vasiliy Pupkin",
"desc": "",
"url": "/crm/contact/show/2/",
"image": "/upload/resize_cache/crm/8b5/25_25_2/MM35_PG13.jpg"
}
],
"company": [],
"deal": [],
"quote": []
}
Code Example
BX24.selectCRM(
{
entityType: ['lead', 'contact', 'company', 'deal', 'quote'],
multiple: true,
value: {lead:[1348,2,35], contact:[2], company:[4,3], deal:[1,2], quote:[1]}
},
function(){
console.log(arguments);
}
)
How to Use Examples in Documentation
Continue Learning
- Show User Single Selection Dialog BX24.selectUser
- Show Multiple User Selection Dialog BX24.selectUsers
- Show Access Permission Selection Dialog BX24.selectAccess
Copied