openAssignment(assignmentId, targetContext, options)
Loads an assignment into a container.
Returns
An empty Promise.
Parameters
Name | Type | Description | Required |
assignmentId | string | The ID of the assignment to be loaded. | ✅ |
targetContext | string | The context where the assignment must be loaded. | ❌ |
options | object | The JavaScript object containing the property that can be used to load a specific view. | ❌ |
The following table contains the properties of the options object:
Name | Type | Description | Required |
pageName | string | The 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');
Previous topic getCurrentContextAPI(pageReference, targetContext) Next topic openCase(caseId, targetContext, options)