Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The HubSpot connection the step signs in with. |
| List idRequired | The List lists node gives you the id. |
| What to do | Only manual and snapshot lists can be changed this way — a dynamic list is maintained by its own filters. |
| Ids to add | any JSON |
| Ids to remove | any JSON |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `hubspot`) |
listId | textits `{{ }}` must give a string |
mode | "add" or "remove" or "addAndRemove", by default "add" |
recordIdsToAdd | any JSONits `{{ }}` must give an array; used when `mode` is one of "add", "addAndRemove" |
recordIdsToRemove | any JSONits `{{ }}` must give an array; used when `mode` is one of "remove", "addAndRemove" |
Output
| Field | Type |
|---|---|
listId | string |
recordsAddedIds sent to be added | number |
recordsRemovedIds sent to be removed | number |
Sample output, and the expression for each field
- listId"7"
- recordsAdded2
- recordsRemoved0
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>",
"listId": "<list id>",
"mode": "add"
},
"label": "Change list membership",
"type": "hubspot.updateListMembership",
"version": 1
}