We use global variables to reference general information about the current user and your organization on a page. Global variables must be referenced using Visualforce expression syntax to be evaluated, for example, {!$User.FirstName}
.
- $Action
A global merge field type to use when referencing standard Salesforce actions such as displaying the Accounts tab home page, creating new accounts, editing accounts, and deleting accounts. - $Api
A global merge field type to use when referencing API URLs. - $Asset
A global merge field to use when referencing images and other assets that are part of the Lightning Design System. - $Cache.Org
A global merge field to access an org cache from a Visualforce page. Retrieve cached values from a specified partition’s org cache in the referenced org. - $Cache.Session
A global merge field to access an org’s session cache from a Visualforce page. Retrieve cached values from a specified partition’s session cache in the referenced org. - $Component
A global merge field type to use when referencing a Visualforce component. - $ComponentLabel
A global merge field to use when referencing the label of an inputField component on a Visualforce page that is associated with a message. - $CurrentPage
A global merge field type to use when referencing the current Visualforce page or page request. - $FieldSet
Provides access to a field set defined in your organization. - $Label
A global merge field type to use when referencing a custom label. - $Label.Site
A global merge field type to use when referencing a standard Sites label in a Visualforce page. Like all standard labels, the text will display based on the user’s language and locale. - $Network
A global merge field type to use when referencing community details in a Visualforce email template. - $ObjectType
A global merge field type to use when referencing standard or custom objects (such as Accounts, Cases, or Opportunities) and the values of their fields. - $Organization
A global merge field type to use when referencing information about your company profile. Use organization merge fields to reference your organization’s city, fax, ID, or other details. - $Page
A global merge field type to use when referencing a Visualforce page. - $Permission
A global merge field type to use when referencing information about the current user’s custom permission access. Use permission merge fields to reference information about the user’s current access to any of your organization’s custom permissions. - $Profile
A global merge field type to use when referencing information about the current user’s profile. Use profile merge fields to reference information about the user’s profile such as license type or name. - $Resource
A global merge field type to use when referencing an existing static resource by name in a Visualforce page. You can also use resource merge fields in URLFOR functions to reference a particular file in a static resource archive. - $SControl
A global merge field type to use when referencing an existing custom s-control by name. This merge field type results in a URL to a page where the s-control executes. - $Setup
A global merge field type to use when referencing a custom setting of type “hierarchy.” - $Site
A global merge field type to use when referencing information about the current Force.com site. - $System.OriginDateTime
A global merge field that represents the literal value of 1900-01-01 00:00:00. - $User
A global merge field type to use when referencing information about the current user. User merge fields can reference information about the user such as alias, title, and ID. Most of the fields available on the User standard object are also available on $User. - $User.UITheme and $User.UIThemeDisplayed
These global merge fields identify the Salesforce look and feel a user sees on a given Web page. - $UserRole
A global merge field type to use when referencing information about the current user’s role. Role merge fields can reference information such as role name, description, and ID.