Skip to main content


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

openAssignment(assignmentId, targetContext, options)

Updated on July 20, 2021

Loads an assignment into a container.

Returns

An empty Promise.

Parameters

NameTypeDescriptionRequired
assignmentIdstringThe ID of the assignment to be loaded.
targetContextstringThe context where the assignment 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 assignment and updates the Redux Store.

PCore.getMashupApi().openAssignment('Work-Test M-12!Assignment_id');

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