Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

$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.

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:
1<apex:outputLink value="{!URLFOR($Action.Account.New)}">
2    Create New Account
3</apex:outputLink>
The following markup adds a link to download an attachment:
1<apex:page standardController="Attachment">
2    <apex:outputLink 
3      value="{!URLFOR($Action.Attachment.Download,
4                      attachment.id)}">
5      Download Now!
6    </apex:outputLink>
7</apex:page>