Variables let you reuse information from the workflow trigger and from earlier workflow activities in later activity configurations.
Variables replace workflow tokens. When you configure an activity, the variables available for selection depend on the trigger and the outputs from earlier activities in the workflow.
Where variables come from
- Start: Provides trigger-level information, such as the workflow initiator and the object that started the workflow.
- Earlier activities: Provide outputs that can be used by later activities. For example, outputs from a Form activity or a Get Asset activity can be used in later steps.
- Make API Call: Provides standard response outputs and any custom outputs that are configured for the activity.
Asset information
Workflow does not assume that every workflow has asset context.
If a later activity needs information about an existing asset, add a Get Asset activity earlier in the workflow and use the variables that it returns.
Get Asset can use an Asset ID supplied by the workflow trigger or by an earlier activity. You do not need to create an Asset ID manually for every workflow.
If Create Asset creates an asset earlier in the workflow, you can pass its Asset ID to a subsequent Get Asset activity when later activities need additional information about the newly created asset. For example, configure the workflow in one of these orders:
- Start → Create Asset → Get Asset → Send Email → End
- Start → Create Asset → Get Asset → Form → End
When a Send Email or Form activity uses Asset Owner(s), Get Asset provides the asset source used to resolve owners. The selected Owner Type determines which owners of that asset receive the email or form.
When referencing an asset property manually, use the property's API name rather than the
display name. For example, use a pattern such as properties.<API name>
when this syntax is supported for the field that you are configuring.
Scores and complex values
Some values are returned in a system format. For example, scores might be returned as
decimal values, where 0.7 represents 70 percent. Some variables return a map
or object rather than a single display value.