IPopFlowResponse

This is the response from Pop Flow operation. It extends the IOperationResponse object.

Functions

getResponseData

This function is used to get the response data of from the Pop Flow operation. The Tab Context of the newly opened page will get back in the application. You can perform all operations and subscriptions in the TabContext that you get in the response.

.

The following example shows the syntax:
getResponseData(): ITabContext;
The following code snippet shows an example in Typescript of the response from the pop flow operation:
const frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID''v1'); 
      const globalContext: IGlobalContext = await  frameworkProvider.getGlobalContext();
      const requestObject: IPopFlowInAppRequest = frameworkProvider.requestHelper.createPublishRequest('PopOperation') as IPopFlowInAppRequest;
      requestObject.setRecordType('ServiceRequest'); 
      const response: IPopFlowResponse = await globalContext.publish(requestObject) as IPopFlowResponse;
      const tabContext: ITabContext = response.getResponseData();
  

The following code snippet shows an example in JavaScript of the response from the pop flow operation:

const frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID''v1'); 
      const globalContext = await  frameworkProvider.getGlobalContext();
      const requestObject = frameworkProvider.requestHelper.createPublishRequest('PopOperation');
      requestObject.setRecordType('ServiceRequest'); 
      const response = await globalContext.publish(requestObject);
      const tabContext = response.getResponseData();