Visualforce Developer Guide
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Spring '21 (API version 51.0)
Winter '21 (API version 50.0)
Summer '20 (API version 49.0)
Spring '20 (API version 48.0)
Winter '20 (API version 47.0)
Summer '19 (API version 46.0)
Spring '19 (API version 45.0)
Winter '19 (API version 44.0)
Summer '18 (API version 43.0)
Spring '18 (API version 42.0)
Winter '18 (API version 41.0)
Summer '17 (API version 40.0)
Spring '17 (API version 39.0)
Winter '17 (API version 38.0)
Summer '16 (API version 37.0)
Spring '16 (API version 36.0)
Winter '16 (API version 35.0)
Summer '15 (API version 34.0)
Spring '15 (API version 33.0)
Winter '15 (API version 32.0)
Spring '14 (API version 30.0)
No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
$Api
$Asset
$Cache.Org
$Cache.Session
$Component
$ComponentLabel
$CurrentPage
$FieldSet
$Label
$Label.Site
$MessageChannel
$Network
$Organization
$Page
$Permission
$Profile
$Resource
$SControl
$Setup
$Site
$System.OriginDateTime
$User
$User.UITheme and $User.UIThemeDisplayed
$UserRole
Functions
Expression Operators
Execution Governors and Limits
Global Variables
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 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 used to reference a standard Sites label in a Visualforce page. As with all standard labels, the label’s message displays according to the user’s language and locale. You can’t modify the message of a standard Sites label. To use a custom message, create a custom label, and then reference the label with the $Label global variable. -
$MessageChannel
A global merge field type to provide access to a message channel defined in your organization. -
$Network
A global merge field type to use when referencing Experience Cloud site 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 Salesforce 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. -
$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.