approveCase(containerItemID)
Performs the approval action for the approval step configured in a case.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
containerItemID | object | The ID of the container item that contains information about the current case. | ✅ |
Usage example
In this example, the success callback is called if the approval action is successful.
const approveCasePromise = getPConnect().getActionsApi().approveCase("app/primary_1/workarea_1");
approveCasePromise.then(() => {
// approve case success handling
}).catch(() => {
// approve case failure handling
});
Previous topic APIs in the ActionsApi class Next topic cancelAssignment(containerItemID)