Newer Version Available

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

Custom Invocable Actions

Returns the list of all custom actions. You can also get basic information for each type of action.

This resource is available in REST API version 32.0 and later.

Syntax

URI
Get a list of custom actions:
/vXX.X/actions/custom
Formats
JSON, XML
HTTP Methods
GET, HEAD, POST
Authentication
Authorization: Bearer token
Parameters
None
Notes
Sending email with the emailAlert action counts against your daily email limit for workflows. For more information, see “Daily Allocations for Email Alerts” in the Salesforce Help.
When invoking an Apex action using the POST method and supplying the inputs in the request, only the following primitive types are supported as inputs:
  • Blob
  • Boolean
  • Date
  • Datetime
  • Decimal
  • Double
  • ID
  • Integer
  • Long
  • String
  • Time
Describe and invoke for an Apex action respect the profile access for the Apex class. If you don’t have access an error is issued.
If you add an Apex action to a flow, and then remove the Invocable Method annotation from the Apex class, a runtime error in the flow occurs.
When a flow user invokes an autolaunched flow, the active flow version runs. If there’s no active version, the latest version runs. When a flow admin invokes a flow, the latest version always runs.
If any of the following elements are used in a flow, packageable components that reference these elements aren’t automatically included in the package.
  • Apex action
  • Email alerts
  • Post to Chatter core action
  • Quick Action core action
  • Send Email core action
  • Submit for Approval core action
For example, if you use an email alert, manually add the email template that is used by that email alert. To deploy the package successfully, manually add those referenced components to the package.
Example
Retrieving a list of custom actions for the current organization:
JSON Response body