Newer Version Available
Invocable Actions
Represents a standard or custom invocable action.
Use actions to add more functionality to your applications. Choose from standard actions, such as posting to Chatter or sending email, or create actions based on your company’s needs.
This resource is available in REST API version 32.0 and later.
Syntax
- URI
- Get a list of custom actions:
- /vXX.X/actions
- Formats
- JSON, XML
- HTTP Methods
- GET, POST
- Authentication
- Authorization: Bearer token
- Parameters
- None
- Example
- Using GET to retrieve a list of general action types for the current organization:
-
1/services/data/v32.0/actions - JSON Response body
-
1{ 2 "standard" : "/services/data/v32.0/actions/standard", 3 "custom" : "/services/data/v32.0/actions/custom" 4} - Example
- Using POST to send a simple email message:
-
1/services/data/v32.0/actions/standard/emailSimple - JSON Request body
-
1{ 2 "inputs" : [ { 3 "emailAddresses" : "Fred@Acme.com", 4 "emailSubject" : "Note", 5 "emailBody" : "Message of the day.", 6 "senderAddress" : "Bill@TheCloud.org" 7 } ] 8} - JSON Response body
-
1{ 2 "actionName" : "emailSimple", 3 "errors" : null, 4 "isSuccess" : true, 5 "outputValues" : null 6}Standard actions return their name in actionName. The value of actionName varies for custom actions.Action actionName value Flow The flow name Apex The class’s invocable method name Quick action <object name>.<quick action name> For a global quick action, there’s no <object name>. prefix.
Email alert <object name>.<email alert name> -
For more information about actions, see the Force.com Actions Developer Guide.