At risk
Contact enrichment
Workflow custom code · Contacts · Node.js 20. Checked Oct 18, 2026, 4:26 PM.
2 problems
At riskHubSpot can't see this
Calls HubSpot's numbered v1–v3 APIs (/contacts/v1/contact/vid/${event.object.objectId}/profile). HubSpot ends support for them in September 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 2). 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.
How it connects
Set off by
No other workflow sets it off through a property, a list or an email.
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 |
|---|---|---|---|
| hubspot_owner_id | Enrolls on it | Enrollment trigger | |
| company | Reads it | Custom code, step 1, line 6 HubSpot can't see this |
HubSpot dates that hit it
- September 2027 in about 10 months
v1 to v3 APIs and legacy apps lose support (/contacts/v1/contact/vid/${event.object.objectId}/profile)
History
| When | What happened |
|---|---|
| Oct 18, 2026 | Found Contact enrichment calls a HubSpot API that's losing support |
| Oct 18, 2026 | Found Contact enrichment reports success even when its requests fail |