deleteCaseInCreateStage(containerItemID)
Deletes the case that is currently in the create stage.
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 case that is currently in the create stage. | ✅ |
Usage example
In this example, the success callback is called if the case that is currently in the create stage is deleted successfully.
const deleteCaseInCreateStagePromise = getPConnect().getActionsApi().deleteCaseInCreateStage("app/modal_1");
deleteCaseInCreateStagePromise.then(() => {
// delete case in create stage success handling
}).catch(() => {
// delete case in create stage success handling
});
Previous topic createWork(className, options) Next topic eventHandler(pConn, event)