Tell Me More: Quick Actions and the REST API
Quick Actions
Use the Quick Actions resource to return a list of actions as well as custom fields and objects that appear in the feed. The resource uses a URI of the format services/data/v37.0/quickActions/.
You might have a preferred tool for working with Salesforce APIs. If you don’t have a preferred tool, Workbench is an easy way to get started. You can find information about Workbench at https://developer.salesforce.com/page/Workbench. You can find information about the REST API in the Force.com REST API Developer’s Guide.
- Global Actions
-
To return global actions, use: services/data/v37.0/quickActions/
A call to this resource returns information about the global actions including our Shipify canvas custom action as shown in this snippet of the response. - Object Actions
-
To return a specific object’s actions, as well as global actions, use: services/data/v37.0/sobjects/object/quickActions/
The call /services/data/v37.0/sobjects/Invoice__c/quickActions returns information about global actions as well as the Invoice Create_Delivery action, as shown in this snippet of the response. - Specific Actions
-
To return a specific action, use: services/data/v37.0/sobjects/object/quickActions/Action_Name
The call /services/data/v37.0/sobjects/Invoice__c/ quickActions/Create_Delivery returns information about only the Create_Delivery action, as shown in this response. - Action Details
-
To return a specific action’s descriptive detail, use: services/data/v37.0/sobjects/object/quickActions/Action_Name/describe/
- Action Default Values and Field Values
-
To return a specific action’s default values, including default field values, use: services/data/v37.0/sobjects/object/quickActions/Action_Name/defaultValues/
The call /services/data/v37.0/sobjects/Invoice__c/ quickActions/Create_Data/defaultValues returns information about defaults for the Invoice Create_Delivery action, as shown in this snippet of the response. - Action Default Values
-
To return the default values for an action, use: /services/data/v37.0/subjects/ object/quickActions/Action_Name/defaultValues/Parent_ID
Describe Layouts
Use the global describe layouts resource to get global layout information for objects, including action objects. The resource uses a URI of the format: services/data/v37.0/ sobjects/Global/describe/layouts/
Use the describe layouts resource to obtain a description of a layout for a specific object, including action objects. The resource uses a URI of the format: services/data/ v37.0/sobjects/object/describe/layouts/