requestNavigateToClickToDialResult
requestNavigateToClickToDialResult
Mandatory: No
Description: requestNavigateToClickToDialResult is a one-way feature. When the CRM Connector sends this message after executing the application's logic, the client application must navigate to the contact in the CRM related to the data included in the message.
Implementation Example
// This is a part of the mandatory in-place event message handler
const processCRMConnectMessageData = async (event) => {
if (event.origin !== CRM_CONNECT_ORIGIN) {
return;
}
const { action, data } = event.data;
if (action === 'requestNavigateToClickToDialResult') {
navigateToClickToDial(data);
}
};
const navigateToClickToDial = (data) => {
screenPopUserById(data.recordId);
}
const screenPopUserById = (recordId) => {
// Implement the mechanism in order to navigate in the CRM tabs on the contact that matches the details from the message.
}
Message formats
CRM Connector
{ "type": "CRMConnectMessage", "action": "requestNavigateToClickToDialResult", "data": <crmConnectorDataObject> }
CRM Connector data object format
{
"recordId": <number> // Represents the ID of the record the CRM should screenpop to
}
Updated 3 months ago