Enable users to delete one or more sObject records by using the Delete Action. Use an Object's Record Id to determine which record to delete. Vlocity recommends using a merge field in the Path to Id field that refers to an Id or a list of Ids in the data JSON.
To identify the record's JSON path for the Path to Id field, preview the Omniscript. For example, this data JSON contains a list of Accounts.
{ "Account": { "accId": ["001f400000EPQ8o", "001f400000BAkbn"] } }
Using his example, the path to delete the array of Account ids is:
%Account:accId%.
|
Property |
Description |
|---|---|
|
Type |
Type of sObject record to delete. For example, Account is a Type of sObject. |
|
Path to Id |
Path to the JSON node that contains the Id or list of Ids of the records to delete. Supports merge syntax. |
|
All Or None |
When checked, the operation fails if any of the records are not deleted. |
|
Entity Is Deleted Message |
Message that displays when a record is deleted. |
|
Delete Failed Message |
Message that displays when the action fails to delete a record. |
|
Invalid Id Message |
Message that displays when an invalid Id is sent to the Delete Action. |
|
Configuration Error Message |
Message that displays when the Delete Action has a configuration error. |
|
Confirm |
Controls whether the modal displays. |
|
Confirmation Dialog Message |
The Confirmation Modal's message text. The default message text is Are you sure? This action cannot be undone. |
|
Confirm Label |
Button label for the Confirmation Modal's confirm action. |
|
Cancel Label |
Button label for the Confirmation Modal's cancel action. |