FlowmageDocs

List associations

BetaReads data

Lists the records one HubSpot record is linked to.

Settings

SettingWhat it is
ConnectionRequiredThe 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 idThe object type id, e.g. 2-1234567.
From record idRequiredtext
Linked 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"
Linked custom object type idThe object type id, e.g. 2-1234567.
Links per call1 to 500.
Start afterA paging cursor from an earlier run of this node.
Fetch every pageFollows HubSpot's paging cursor, and refuses past 5,000 links rather than answering a short list.
Technical details
KeyValue
connectiontexta 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"
fromCustomObjectTypetextused when `fromObject` is "custom"
fromIdtextits `{{ }}` 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"
toCustomObjectTypetextused when `toObject` is "custom"
limitnumber, by default 100
aftertext
returnAlltrue/false, by default false

Output

FieldType
associationsLinksarray
associationCountLinks in this answernumber
hasMoreMore links are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • associationCount0
  • associations[]
  • hasMorefalse
  • nextCursor""

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": {
    "after": "",
    "connection": "<connection id>",
    "fromCustomObjectType": "",
    "fromId": "<from record id>",
    "fromObject": "contacts",
    "limit": 100,
    "returnAll": false,
    "toCustomObjectType": "",
    "toObject": "companies"
  },
  "label": "List associations",
  "type": "hubspot.listAssociations",
  "version": 1
}