The CREATE action creates a new record in Salesforce.
Use this action when a process needs to create Salesforce objects such as Accounts, Contacts, Opportunities, Cases, or custom objects. The action sends a request to Salesforce containing the Salesforce object type to create and the data required to populate the new record as a JSON payload. Salesforce validates the submitted values and attempts to create the specified object. The response returned by Salesforce can then be mapped to process variables for later use.
The created record can then be referenced by subsequent process steps, Salesforce actions, or external systems.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| SObjectName | String | Required | The name of the Salesforce object to create, such as Account, Contact, Opportunity, or a custom object. |
| salesforcePayload | JSON | Required |
A JSON object containing the field names and values for the Salesforce record being created. The structure of the payload depends on the selected Salesforce object and its available fields. See the Salesforce API documentation on Working with Records and REST API Reference for details of the fields contained in the JSON structure. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| salesforceResult | String | Optional | The response returned by Salesforce after attempting to create the object. The contents depend on the Salesforce API and the object being created. |
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the operation completed successfully. |