FlowmageDocs

Create records in bulk

BetaChanges data

Creates up to a hundred HubSpot records in one call.

Settings

SettingWhat it is
ConnectionRequiredThe HubSpot connection the step signs in with.
Object"contacts" or "companies" or "deals" or "tickets" or "notes" or "tasks" or "calls" or "meetings" or "emails" or "leads" or "products" or "line_items" or "custom"
Custom object type idThe object type id, e.g. 2-1234567. The List properties node shows it.
RecordsA list of objects, at most 100. A row that already has a properties key is sent as it is; any other row is sent as that record's properties.
Report failures per recordGives every record a trace id so HubSpot answers which ones failed instead of failing the whole call. The successes are kept and the failures come back under Errors.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `hubspot`)
object"contacts" or "companies" or "deals" or "tickets" or "notes" or "tasks" or "calls" or "meetings" or "emails" or "leads" or "products" or "line_items" or "custom", by default "contacts"
customObjectTypetextused when `object` is "custom"
recordsany JSONits `{{ }}` must give an array
traceIdstrue/false, by default false

Output

FieldType
recordsCreated recordsarray
recordCountRecords creatednumber
errorsRecords HubSpot refusedarray
numErrorsHow many it refusednumber
Sample output, and the expression for each field
  • errors[]
  • numErrors0
  • recordCount0
  • records[]

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "customObjectType": "",
    "object": "contacts",
    "records": "<records>",
    "traceIds": false
  },
  "label": "Create records in bulk",
  "type": "hubspot.batchCreateRecords",
  "version": 1
}