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 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. - $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. 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.
$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.
Usage
Use dot notation to specify an object and an action, for example, $Action.Account.New
Example
The following markup adds a link to create a new account:
<apex:outputLink value="{!URLFOR($Action.Account.New)}"> |
The following markup adds a link to download an attachment:
<apex:page standardController="Attachment"> |
See Also
developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global.htm
'개발자' 카테고리의 다른 글
오라클(ORACLE) 계정 생성 :: ORACLE12 이상에서는 예전과 다름... (0) | 2021.04.24 |
---|---|
나모 액티브스퀘어8 (0) | 2021.04.21 |
라파엘(Raphaël) 자바스크립트 라이브러리(JAVASCRIPT LIBRARY) 소개 및 파일 (0) | 2021.03.19 |
개발자 2020년 12월 22일 오픈 재택근무 일지 (0) | 2020.12.22 |
개발자 2020년 12월 21일 오픈 재택근무 일지 (0) | 2020.12.21 |