The CUSTOM_OBJECT_CREATE action creates a custom Salesforce object definition.
Use this action when a process needs to create a new custom object in Salesforce programmatically. Custom objects allow organizations to store information that is not supported by Salesforce standard objects such as Accounts, Contacts, Opportunities, or Cases.
This action creates the object definition itself, enabling Salesforce to store new types of business data. The action sends a custom object definition to Salesforce using a JSON payload. Salesforce validates the definition and, if successful, creates a new custom object that can subsequently store records and participate in Salesforce processes, reporting, and integrations.
Custom objects behave similarly to standard Salesforce objects and can contain fields, relationships, security settings, and business logic.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| 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 the custom object definition is created. |
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the operation completed successfully. |