Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Create Records Using Specific sObject Quick Actions
Creates a record via the specified quick action based on the field values included in the
request body. This resource is available in REST API version 28.0 and later.
When working with actions, also refer to Quick Actions.
Syntax
URI: /services/data/vXX.X/sobjects/sObject/quickActions/actionName
Formats: JSON, XML
HTTP Method: POST
Authentication: Authorization: Bearer token
Parameters: None required
Example
Example Request
1curl -X POST https://MyDomainName.my.salesforce.com/services/data/v67.0/sobjects/Account/quickActions/CreateContact -H 'Authorization: Bearer token -H "Content-Type: application/json" -d @newcontact.json'Example Request Body
1{
2
3 "contextId" : "001D000000JRSGf",
4 "record" : { "LastName" : "Smith" }
5
6}