Close notification
Here's a Typescript example:
const frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'v1');
let notificationContext: INotificationContext = await frameworkProvider.getNotificationContext('notificationId007');
const requestObject: IOperationRequest = frameworkProvider.requestHelper.createPublishRequest('CloseNotification') as IOperationRequest;
notificationContext.publish(requestObject).then((message) => {
const response = message as INotificationOperationResponse;
//custom code
});
Here's a JavaScript example:
const frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'v1');
let notificationContext = await frameworkProvider.getNotificationContext('notificationId007');
const requestObject = frameworkProvider.requestHelper.createPublishRequest('CloseNotification');
notificationContext.publish(requestObject).then((resp) => {
//custom code
}).catch((err) => {
//custom code
});