Event of Client Change CallCard::EntityChanged

We are still updating this page

Some data may be missing here — we will complete it shortly.

Scope: telephony

Who 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
type

Description

PHONE_NUMBER
string

Client's phone number

CRM_ENTITY_TYPE
string

Type of the CRM entity associated with the call (CONTACT, LEAD, COMPANY)

CRM_ENTITY_ID
int

ID of the CRM entity associated with the call

Event Subscription

How to Use Examples in Documentation

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