For the managed package runtime, 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.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Preview the Omniscript and identify the JSON path for the record. For example,
this data JSON contains a list of Accounts:
{ "Account": { "accId": ["001f400000EPQ8o", "001f400000BAkbn"] } } - In the Delete Action properties, click Add sObject to Delete.
- In the Type column, select an Object.
-
In the Path to Id field, enter the JSON
path for the record id using merge field syntax. Using the Account
example, the path to delete the array of Account ids is:
%Account:accId%. - Preview the Omniscript and use a test record's id to test the functionality.
- Confirm Record Deletion (Managed Package)
For the managed package runtime, enable users to confirm the deletion of a record using the Confirmation Modal. - Display Messages from a Delete Action (Managed Package)
For the managed package runtime, display messages when the operation succeeds or fails by configuring these fields in the Error Messages section: - Delete Action Properties (Managed Package)
For the managed package runtime, this page contains information on Delete Action Properties.