Enable outbound dialing from the media toolbar
You can enable outbound calls made from the media toolbar to trigger a screen pop on a chosen page, as specified in the screen pop configuration.
This displays relevant information during a call, ensuring agents have the necessary context and tools to provide a more personalized and responsive experiences.
Outbound calls started from the media toolbar can trigger a screen pop to a chosen page
when the token SVCMCA_DIALER_SCREEN_POP_REQUIRED is passed in the IVR
data.
Here's an example of the newCommEvent to enable screen pop actions if the IVR data passes the token:
const uiEventsFrameworkInstance = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const multiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();const phoneContext = await multiChannelAdaptorContext.getCommunicationChannelContext('PHONE');let request: IMcaNewCommEventActionRequest = uiEventsFrameworkInstance.requestHelper.createPublishRequest('newCommEvent') as IMcaNewCommEventActionRequest;
request.getInData().setInDataValueByAttribute('SVCMCA_ANI', phoneNumber);
request.setEventId('1234');
request.getInData().setInDataValueByAttribute("appClassification", "ORA_SERVICE");
request.getInData().setInDataValueByAttribute("SVCMCA_COMMUNICATION_DIRECTION", "ORA_SVC_OUTBOUND");
request.getInData().setInDataValueByAttribute('callStatus', "OUTGOING");
request.getInData().setInDataValueByAttribute('SVCMCA_DIALER_SCREEN_POP_REQUIRED', "Y"); // for enabling the screenpop for outbound call
request.setAppClassification("ORA_SERVICE");
const operationResponse: IMcaNewComActionResponse = await phoneContext.publish(request) as IMcaNewComActionResponse;