Salesforce:Create Record
Controlled node
Overview
Create a Salesforce record from field values.
Create one record in a Salesforce object. Supply field API names and values as a data object.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Triggers this operation. |
| sobjectAPIName | Text | Required Salesforce object API name, such as Account, Contact or a custom object name ending in __c. Use the API name, not a display label. |
| data | Data | Required object of field values, not a JSON-encoded string. Include the fields required by your Salesforce organisation. |
Properties
| Setting | Type | Description |
|---|---|---|
| connection | Connection | Select an authenticated Salesforce connection from this project. The connected account’s object and field permissions apply. |
Outputs
| Output | Type | Description |
|---|---|---|
| record | Data | Creation response, usually { "id": "...", "success": true, "errors": [] }. This is not the full created record. Failures can contain error. |
| done | Event | Fires when the node returns, including when it returns an error result. Check the data output before continuing. |
Use Describe sObject to discover fields before constructing data. Validation rules and permissions can reject otherwise valid-looking values. Each successful execution creates another record; keep its returned id if you need to update it later.
Example
Set sobjectAPIName to Account. Connect a Data node containing the object below to data, select the connection, and trigger run from Start. Check record.success before saving record.id.
{ "Name": "Example Ltd", "Industry": "Technology" }
Use values allowed by your organisation; Industry is only an example.