Sync Wrap Up outcome and call disposition notes between the media toolbar and Fusion Service

You can optimize the call disposition process by synchronizing the Wrap Up outcome and call disposition notes between the Media toolbar and Service Center having updates reflected in the Outcome and Notes from the Media toolbar to the Fusion Service call panel or the other way around.

Capturing notes as part of the call disposition is a standardized way of documenting the key details of a customer interaction. Improving the call disposition process helps ensure agents see the latest information regardless which UI element they're viewing.

You can extend your application using Oracle Visual Builder Studio to do the following:

  • Detect the change during the Call Wrap Up from an external media toolbar, by using the Field Value Change Event.
  • Set a value for a particular field during the Call Wrap Up from an external media toolbar, by using the Set Field Value Operation.
  • Get a value for a particular field during the Call Wrap Up from an external media toolbar, by using the Get Field Value Operation.
  • Save the updates to the Call Wrap Up from an external media toolbar, by using the Save Record Operation.

Here's a JavaScript example showing how to get WrapUpRecordContext from CloseComm and perform the Set Field Value operation in Wrap Up:

/// <reference path="uiEventsFramework.d.ts"/>     
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.createPublishRequest('closeCommEvent');
    request.setAppClassification('appClassfication');
    request.setInputData(_inboundData);
    request.setReason('WRAPUP'); 
    const inData = request.getInData();
	const response = await phoneContext.publish(request);
	const engagementContext = response.getResponseData().getEngagementContext();
	const wrapUpRecordContext = await engagementContext.getWrapupContext();
    const requestObject = uiEventsFrameworkInstance.requestHelper.createPublishRequest('cxEventBusSetFieldValueOperation');
    requestObject.field().setValue('WrapUp.ResolutionCd', 'ORA_SVC_DS_POSITIVE_OUTCOME');
    requestObject.field().setValue('WrapUp.CallNotes', 'New Description');
    wrapUpRecordContext.publish(requestObject).then((message) => {
        const response = message;
        // custom code
    }).catch((error) => {
        // custom code
    });