cancelAssignment(containerItemID)
Cancels the current assignment.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
containerItemID | string | The ID of the container item that contains information about the current assignment. | ✅ |
Usage example
In this example, the success callback is called if the cancel action is successful.
const cancelAssignmentPromise = getPConnect().getActionsApi().cancelAssignment("app/primary_1/workarea_1");
cancelAssignmentPromise.then(() => {
// cancel assignment success handling
}).catch(() => {
// cancel assignment failure handling
});
Previous topic approveCase(containerItemID) Next topic cancelCreateStageAssignment(containerItemID)