onDataUpdated
This event is used to listen to a DataUpdate event that happens in Fusion application.
This is a non controllable event. Using this listener, the Fusion application (Service Center) can send notifications about updates of Fusion application (Service Center) such as contact information which will then be used to show in the CTI toolbar. Also, the Fusion application can use this method to notify the toolbar about the Fusion application actions, such as a Wrap-up, call have been completed and so on.
Here's a Typescript example for adding subscription for onDataUpdated event.
/// <reference path="uiEventsFramework.d.ts"/>
const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const multiChannelAdaptorContext: IMultiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();
const phoneContext: IPhoneContext = await multiChannelAdaptorContext.getCommunicationChannelContext('PHONE') as IPhoneContext;
const request: IMcaEventRequest = uiEventsFrameworkInstance.requestHelper.createSubscriptionRequest('onDataUpdated') as IMcaEventRequest;
// You should set correct appClassification here. eg: ORA_SERVICE for Service App
// Refer to Application Classification Code for the list of supported app classifications
request.setAppClassification('_appClassfication');
phoneContext.subscribe(request, (response: IEventResponse) => {
const dataUpdateResponse = response as IMcaOnDataUpdatedEventResponse;
const data: IMcaOnDataUpdatedData = dataUpdateResponse.getResponseData();
// Custom Code
});
Here's a JavaScript example adding subscription for adding subscription for onDataUpdated event.
const uiEventsFrameworkInstance = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const multiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();
const phoneContext = await multiChannelAdaptorContext.getCommunicationChannelContext('PHONE');
const request = uiEventsFrameworkInstance.requestHelper.createSubscriptionRequest('onDataUpdated');
// You should set correct appClassification here. eg: ORA_SERVICE for Service App
// Refer to Application Classification Code for the list of supported app classifications
request.setAppClassification('_appClassfication');
phoneContext.subscribe(request, (response) => {
const dataUpdateResponse = response;
const data = dataUpdateResponse.getResponseData();
// Custom Code
});