---
schema_version: "1"
id: e5440facd2c1d6bfdbab6e978d17fa1cd347cb5a6e4aa00e354d3621f94cca47
title: $Action
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/variables/pages-variables-global-action.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-variables-global-action.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ff273c346a366123c7c58969c06d7e56559349192853c8ee25ea02a4959b05dd
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# $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:

```visualforce
<apex:outputLink value="{!URLFOR($Action.Account.New)}">
    Create New Account
</apex:outputLink>
```

The following markup adds a link to download an attachment:

```visualforce
<apex:page standardController="Attachment">
    <apex:outputLink 
      value="{!URLFOR($Action.Attachment.Download,
                      attachment.id)}">
      Download Now!
    </apex:outputLink>
</apex:page>
```

-   **[Valid Values for the $Action Global Variable](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-variables-global-action-valid-values.md)**  


    The $Action global variable contains a list of actions and objects on which the actions can be performed.


**See Also**  


-   [Dynamic References to Action Methods Using $Action](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/dynamic-vf/pages-dynamic-vf-globals-action.md)

