Event of Client Change CallCard::EntityChanged
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
telephonyWho can subscribe:
any user
The CallCard::EntityChanged event occurs when the current client changes during a call review.
What the Handler Receives
The event handler receives an object with the fields specified below.
|
Parameter |
Description |
|
PHONE_NUMBER |
Client's phone number |
|
CRM_ENTITY_TYPE |
Type of the CRM entity associated with the call ( |
|
CRM_ENTITY_ID |
ID of the CRM entity associated with the call |
Event Subscription
How to Use Examples in Documentation
cURL (Webhook)
cURL (OAuth)
JS
PHP
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::EntityChanged","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/placement.bindEvent"
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::EntityChanged","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/placement.bindEvent?auth=**put_access_token_here**"
BX24.placement.bindEvent("CallCard::EntityChanged", function (callState) {
console.log(callState);
});
require_once('crest.php');
$result = CRest::call(
'placement.bindEvent',
[
'PLACEMENT' => 'CallCard::EntityChanged',
'HANDLER' => '**your_handler_url_here**'
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Continue Your Exploration
- Get Call Status getStatus
- Disable Auto-Close disableAutoClose
- Disable Auto-Close enableAutoClose
- Event Before Closing the CallCard CallCard::BeforeClose
- Event of Call Status Change CallCard::CallStateChanged
Copied
Previous