Newer Version Available

This content describes an older version of this product. View Latest

Overview

Actions allow you to build custom development tools for Lightning Platform applications.

Actions are about “getting things done” in Salesforce. They encapsulate a piece of logic that allows a user to perform some work, such as sending email. When an action runs, it saves changes in your organization by updating the database.

Actions are easy to discover and use, and also easy to understand and implement. Every button and link in Salesforce can be considered an action. A consistent Actions API and framework support the creation and distributed use of actions throughout Salesforce. Actions are available in the REST API.

The types of actions are:
Type Description
InvocableAction Invocable actions can be invoked from a common endpoint in the REST API. They provide “describe” support – a programmatic mechanism to learn about all invocable actions on the platform.
There are two types of invocable actions.
Standard action
A standard action is ready to use right away. The work it performs is predefined, along with its inputs and outputs, and they’re available in every organization.
Custom action
You create custom actions because these actions require a definition. For example, to use an Apex action, create the Apex class method for the action.
QuickAction Quick Actions, formerly known as Publisher Actions, use page layouts to make it easy for administrators to configure an action to create or update a record. The API always works with an sObject.
StandardButton Standard buttons are URLs allowing users to either go to another page (for example, the Edit page) or accomplish some task (for example, lead conversion).
CustomButton Custom buttons are URLs that an administrator can specify and when included on a page and clicked, will redirect a user to that URL.

To call an action from a flow, use FlowActionCall, as described in the Metadata API Developer’s Guide.

The If-Modified-Since header can be used with actions, with a date format of EEE, dd MMM yyyy HH:mm:ss z. When this header is used, if the action metadata has not changed since the provided date, a 304 Not Modified status code is returned, with no response body.