saveAndClose(containerItemID)
Saves the current work object opened in the modal dialog.
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 work
object. Example:
| ✅ |
Usage example
In this example, the success callback is called if the case is saved successfully.
const saveAndClosePromise = getPConnect().getActionsApi().saveAndClose("app/modal_1");
saveAndClosePromise.then(() => {
// save and close success handling
}).catch(() => {
// save and close failure handling
});
Previous topic resolveDuplicateCase(containerItemID) Next topic showCasePreview(pzInsKey, configObj)