Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The HubSpot connection the step signs in with. |
| From 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" |
| From custom object type id | The object type id, e.g. 2-1234567. |
| From record idRequired | text |
| To 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" |
| To custom object type id | The object type id, e.g. 2-1234567. |
| To record idRequired | text |
| Give the link a label | Off, HubSpot uses its own default link for this pair. On, the link carries the association type below. |
| Association category | "HUBSPOT_DEFINED" or "USER_DEFINED" |
| Association type id | Leave at 0 to use HubSpot's default for this pair. The id is directional: if the from object is a contact and the to object a company, the id that marks that company primary is 1. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `hubspot`) |
fromObject | "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" |
fromCustomObjectType | textused when `fromObject` is "custom" |
fromId | textits `{{ }}` must give a string |
toObject | "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 "companies" |
toCustomObjectType | textused when `toObject` is "custom" |
toId | textits `{{ }}` must give a string |
useLabel | true/false, by default false |
associationCategory | "HUBSPOT_DEFINED" or "USER_DEFINED", by default "HUBSPOT_DEFINED"used when `useLabel` is true |
associationTypeId | number, by default 0used when `useLabel` is true |
Output
| Field | Type |
|---|---|
fromObjectIdFrom record id | string |
toObjectIdTo record id | string |
labelsLabels on the link | array |
Sample output, and the expression for each field
- fromObjectId"1"
- labels[]
- toObjectId"2"
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": {
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 0,
"connection": "<connection id>",
"fromCustomObjectType": "",
"fromId": "<from record id>",
"fromObject": "contacts",
"toCustomObjectType": "",
"toId": "<to record id>",
"toObject": "companies",
"useLabel": false
},
"label": "Associate records",
"type": "hubspot.associateRecords",
"version": 1
}