Delete Action (Managed Package)

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.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. 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"] }  }	
  2. In the Delete Action properties, click Add sObject to Delete.
  3. In the Type column, select an Object.
  4. 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%.
  5. Preview the Omniscript and use a test record's id to test the functionality.