openAssignment(assignmentID, className, options)
Opens an assignment and stores it in a target container.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
assignmentID | string | The ID of the assignment to be
opened. Example:
| ✅ |
className | string | The name of the case class associated with the assignment.
Example:
| ✅ |
options | object | The JavaScript object containing a property of the target container. | ❌ |
The following table contains the property of the options object:
Name | Type | Description | Required |
containerName | string | The name of the target container that will store the
assignment. Example:
| ❌ |
Usage example
In this example, the success callback is called if the assignment is opened successfully.
const openAssignmentPromise = getPConnect().getActionsApi().openAssignment(
"ASSIGN-WORKLIST OPB1HW-SPACETRA-WORK RA-43001!REQUEST_FLOW_0",
"OPB1HW-SpaceTra-Work-RequestApproval",
{ containerName: "primary" }
);
openAssignmentPromise.then(() => {
// open assignment success handling
}).catch(() => {
// open assignment failure handling
});
Previous topic navigateToStep(stepID, containerItemID) Next topic openLocalAction(actionID, options)