Answer the question
In order to leave comments, you need to log in
How can a person responsible for a lead be automatically assigned?
I transfer the lead to B24 of the client something like this:
$result = \App\B24Rest::call(
'crm.lead.add',
['FIELDS' => [
'TITLE' => 'Сообщение из формы №'.$arElement['ID'],
'NAME' => $arElement['NAME'],
//'LAST_NAME' => 'Петров',
//'EMAIL' => [
// '0' => ['VALUE' => '[email protected]', 'VALUE_TYPE' => 'WORK', ]
// ],
'PHONE' => [
'0' => ['VALUE' => $arElement['PREVIEW_TEXT'], 'VALUE_TYPE' => 'WORK', ]
]
],
'UTM_CAMPAIGN' => $arElement['PROPERTY_UTM_CAMPAIGN_VALUE'],
'UTM_CONTENT' => $arElement['PROPERTY_UTM_CONTENT_VALUE'],
'UTM_MEDIUM' => $arElement['PROPERTY_UTM_MEDIUM_VALUE'],
'UTM_SOURCE' => $arElement['PROPERTY_UTM_SOURCE_VALUE'],
'UTM_TERM' => $arElement['PROPERTY_UTM_TERM_VALUE'],
'ASSIGNED_BY_ID' => 28
]
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question