You are here:
Global Variables Flow Orchestration Resource
Use system-provided variables that reference information about the Salesforce org or running user, such as the user’s ID or the API session ID.
Required Editions
| View supported editions for Flow Orchestration. |
| Global Variable | Description |
|---|---|
$Api
|
References an API URL or the session ID. These merge fields are available.
|
$Flow
|
References information about the running flow interview. For details, see $Flow Global Variables Flow Orchestration Resource. |
$Label
|
References custom labels. This global variable appears only if your org has custom labels. The returned value depends on the language setting of the contextual user. The value returned is one of the following, in order of precedence:
|
$Organization
|
References information about your company. |
$Permission
|
References information about the current user’s custom permission access. |
$Profile
|
References information from the current user’s profile, such as license type or name.
|
$Record
|
Available only in record-triggered orchestrations. In a record-triggered
orchestration, the orchestration makes a copy of the triggering record when it
starts. If a step within that orchestration makes a field update on the triggering
record, it’s not reflected in the You can reference |
$Record__Prior
|
Available only in record-triggered orchestrations that are configured to run when a record is updated or when a record is created or updated. The When the orchestration is triggered by a newly created record, all
|
$Setup
|
References custom settings of type Hierarchical custom settings allow values at these levels. Salesforce determines the correct value for this custom setting field based on the running user’s current context.
|
$System
|
$System.OriginDateTime represents the
literal value of 1900-01-01 00:00:00. Use this merge
field to perform date/time offset calculations. |
$User
|
References information about the user who’s running the orchestration. Most of the time, an orchestration’s running user is the automated process user. When the running user is the automated process user, $User doesn’t provide useful information.
|
$UserRole
|
References information about the current user’s role, such as the role name or ID. |
Global Variable Considerations for Flows
- In a record-triggered orchestration, the
$Recordglobal variable doesn’t contain the triggering record’s values for fields whose values are derived from other records. Examples of derived fields includeContact.NameandUser.MediumPhotoUrl. - Multi-select picklist, time, and location global variables are available only in formulas.
- If a field in the database has no value, the corresponding merge field returns a blank
value. For example, if no value is set for your org’s Country field,
{!$Organization.Country}returns no value.
- $Flow Global Variables Flow Orchestration Resource
A$Flowglobal variable provides information about the running orchestration. Some variables contain system-provided values. You can update the other variables throughout the orchestration by storing output values in the variables.

