Form Variable Names

To form a predefined variable name, combine the base name of the variable with a field of its corresponding info class. You can use the base name with the corresponding info class only for example, you can use the base name action with info class ActionInfo only.

If an info class has no fields associated, use the base name as the variable. For example, to use the controller URL as a variable in a template, use ${controllerUrl}.

If an info class comprises multiple fields, select a single field and associate it with the base name. For a list of fields associated with an info class, see Info Class Fields.

For example:

  • To use the account name as a variable in a template, combine the base name account with the name field of the EntityInfo class to form the variable ${account.name}.
  • To use the trigger time of an action as a variable, combine the base name action with the triggerTime field of the ActionInfo class to form the variable ${action.triggerTime}.

You can chain the segments of a variable name where the info class field type is yet another info class.

For example, to use the name of an application in which the latest triggering event occurred:

  1. Combine the latestEvent base name with the application field of the EventInfo class.
  2. The field type of the application field is EntityInfo which is yet another info class, hence select the name field of the EntityInfo class.
  3. Form the variable name by appending the segments:

    <base name>.<field name of info class1>.<field name of info class2>}

    ${latestEvent.application.name}.