At risk
Company associations
Workflow custom code · Companies · Node.js 20. Checked Oct 18, 2026, 4:26 PM.
3 problems
At riskHubSpot can't see this
Calls HubSpot's v4 APIs (/crm/v4/associations/companies/contacts/batch/read). HubSpot ends support for them on March 30, 2027.
How to fix. Move these calls to HubSpot's date-based API versions before the deadline.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
At risk
Calls fetch() without checking whether the request worked (line 3). fetch only fails when the network does, so when a request is rejected or rate-limited, the code carries on with the error response instead of the data. At best it fails later with a misleading error; HubSpot doesn't retry it either way.
How to fix. After each fetch, check the response and throw when it failed, for example: if (!res.ok) throw new Error(`Request failed: ${res.status}`). The step then fails where you can see it. Or use @hubspot/api-client, which throws on errors and gets HubSpot's automatic retries for rate limits.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
At riskHubSpot can't see this
Catches errors without passing them on (line 10). When something inside fails, this step still finishes as a success and HubSpot doesn't retry it.
How to fix. End the catch block with throw err, as HubSpot's own examples do, or set an output field that a later branch checks. If a failure there is truly harmless, you can ignore this.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
How it connects
Set off by
- Territory assignment sets sales_region (set in a step)
Sets off
It doesn't set off another workflow through a property, a list or an email.
What it depends on
| Property | How | Where | Actions |
|---|---|---|---|
| sales_region | Enrolls on it | Enrollment trigger |
HubSpot dates that hit it
- March 30, 2027 in 163 days
v4 APIs lose support (/crm/v4/associations/companies/contacts/batch/read)
History
| When | What happened |
|---|---|
| Oct 18, 2026 | Found Company associations calls a HubSpot API that's losing support |
| Oct 18, 2026 | Found Company associations reports success even when its requests fail |
| Oct 18, 2026 | Found Company associations hides its own errors from HubSpot |