Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

openCase(caseId, targetContext, options)

Updated on July 20, 2021

Loads a case into a target container.

Returns

An empty Promise.

Parameters

NameTypeDescriptionRequired
caseIdstringThe ID of the case to be loaded.
targetContextstringThe target context where the case must be loaded.
Note: If the value of targetContext is not provided, the default value is app.
optionsobjectThe JavaScript object containing the property that can be used to load a specific view.

The following table contains the properties of the options object:

NameTypeDescriptionRequired
pageNamestringThe name of the view that must be loaded into a container.

Usage example

In this example, the API opens the case whose ID is OPB1HW-SPACETRA-WORK RA-10001, and updates the Redux Store.

PCore.getMashupApi().openCase('OPB1HW-SPACETRA-WORK RA-10001');
  • Previous topic openAssignment(assignmentId, targetContext, options)
  • Next topic openPage(pageName, className, targetContext)

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us