Interaction Logging

startLogging

Here's a Typescript example to start logging:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();

Here's a JavaScript example to start logging:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();

Here's a Typescript example to start logging with an extensible field:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging({'UefCustomTextTvm_c':'Extensible field value updated!'});

Here's a JavaScript example to start logging with an extensible field:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging({'UefCustomTextTvm_c':'Extensible field value updated!'});

stopLogging

Here's a Typescript example to stop logging an interaction:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();
interactionLogger.stopLogging();

Here's a JavaScript example to stop logging an interaction

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();
interactionLogger.stopLogging();

Here's a Typescript example to stop logging an interaction by updating an extensible field:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();
interactionLogger.stopLogging({'UefCustomTextTvm_c':'Extensible field value updated!'}, {'InteractionNotes':'quick 123'});

Here's a JavaScript example to stop logging an interaction by updating an extensible field:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();
interactionLogger.stopLogging({'UefCustomTextTvm_c':'Extensible field value updated!'});

\

Here's a Typescript example to stopLogging and then create a wrap-up object:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();

Here's a JavaScript example to stopLogging and then create a wrap-up object:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();
interactionLogger.stopLogging(null, {'InteractionNotes':'quick 123'});

pauseLogging

Here's a Typescript example to pause logging an interaction

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();
await interactionLogger.pauseLogging();

Here's a JavaScript example to pause logging an interaction:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();
await interactionLogger.pauseLogging();

resumeLogging

Here's a Typescript example to resume logging an interaction:

var frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger: IInteractionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId: string = await interactionLogger.startLogging();
await interactionLogger.pauseLogging();
await interactionLogger.resumeLogging();

Here's a JavaScript example to resume logging an interaction:

var frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('app','v1')
var interactionLogger = frameworkProvider.getInteractionLogger('ORA_SVC_PHONE', '300100572530155');
var parentInteractionId = await interactionLogger.startLogging();
await interactionLogger.pauseLogging();
await interactionLogger.resumeLogging();