Loading
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          ActionListService:processOnCreateActions

          ActionListService:processOnCreateActions

          This service executes the Vlocity Action set on the State Model version of the object.

          Because the OnCreate action is designed to execute when the object is created, this method can be called after the insert trigger of the target object. The service executes the OnCreate actions associated with the list of object Ids passed to it.

          Or, this service can pass a map of optional parameters, which are passed to the OnCreate action that is going to be executed.

          Note
          Note

          This service is not like the other services that implement VlocityOpenInterface2. The signature for this service is:

          processOnCreateActions(List<Id> objectIds, Map<String, Object> output, Map<String, Object> options

          Class: ActionListService

          Method: processOnCreateActions

          How It Works

          1. The service takes the list of object Ids and finds the state model, state model version, and the OnCreate Vlocity Action associated with the state model version level.

          2. The service executes the invoke method defined in the action.

            The input for the action is the object Id under the key "id." Example: "Id": "0Q06g000000ZE7vCAG"

          3. The service passes the result of the execution in the output map with the objectId and OnCreate output.

          Input Options

          Option

          Description

          objectIds

          A list of object Ids that the user wants to sent to the OnCreate

          Option map

          Map of options that the user wants to send to the OnCreate action

          Input JSON

          Not applicable because the input is a list of object Ids.

          Output JSON

          See the following sample output JSON.

          {
            "0Q06g000000ZE7vCAG": {
              "Status": "Success"
            }
          }
           
          Loading
          Salesforce Help | Article