Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The 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 id | The object type id, e.g. 2-1234567. The List properties node shows it. |
| Properties | One row per property, keyed by its internal name. Deals need dealname, dealstage and pipeline; tickets need subject, hs_pipeline and hs_pipeline_stage; notes, tasks, calls and meetings need hs_timestamp. |
| Link it to | Optional. HubSpot links the new record to an existing one in the same call. |
| Id of the record to link to | text |
| Association type id | Leave at 0 to use HubSpot's default for this pair. The id is directional: starting at a contact, the id that marks a company primary is 1; starting at the company it is 2. |
| Association category | "HUBSPOT_DEFINED" or "USER_DEFINED" |
Technical details
| Key | Value |
|---|---|
connection | texta 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" |
customObjectType | textused when `object` is "custom" |
properties | object (any keys), by default {} |
associateToObject | "" or "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" |
associateToId | textits `{{ }}` must give a string; used when `associateToObject` is not "" |
associationTypeId | number, by default 0 |
associationCategory | "HUBSPOT_DEFINED" or "USER_DEFINED", by default "HUBSPOT_DEFINED" |
Output
| Field | Type |
|---|---|
recordId | string |
record | object |
properties | object |
Sample output, and the expression for each field
- properties{}
- record
- id"1"
- recordId"1"
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": {
"associateToId": "",
"associateToObject": "",
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 0,
"connection": "<connection id>",
"customObjectType": "",
"object": "contacts",
"properties": {}
},
"label": "Create record",
"type": "hubspot.createRecord",
"version": 1
}