At risk
Deal stage sync
Workflow custom code · Deals · Node.js 20. Checked Oct 18, 2026, 4:26 PM.
3 problems
At riskHubSpot can't see this
Calls HubSpot's Pipelines v1 API (/crm-pipelines/v1/pipelines/deals). HubSpot switches it off after December 4, 2026, and these calls will fail from then on.
How to fix. Move these calls to the Pipelines API's date-based version (2026-09 or newer).
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
At riskHubSpot can't see this
Calls HubSpot's numbered v1–v3 APIs (/crm/v3/objects/deals/). HubSpot ends support for them in September 2027.
Suggested fix. Moves the call to HubSpot's dated version 2026-09, the way HubSpot's migration guide shows. Most responses are unchanged, but some differ, so test the workflow after applying it.
- await fetch('https://api.hubapi.com/crm/v3/objects/deals/' + event.object.objectId, { method: 'PATCH', headers, body: JSON.stringify({ properties: { dealstage: stage.stageId } }) });
+ await fetch('https://api.hubapi.com/crm/objects/2026-09/deals/' + event.object.objectId, { method: 'PATCH', headers, body: JSON.stringify({ properties: { dealstage: stage.stageId } }) });
await fetch('https://api.hubapi.com/crm/objects/2026-09/deals/' + event.object.objectId, { method: 'PATCH', headers, body: JSON.stringify({ properties: { dealstage: stage.stageId } }) });
At riskHubSpot can't see this
Calls fetch() without checking whether the request worked (lines 3, 5). fetch only fails when the network does, so when a request is rejected or rate-limited, this step still finishes as a success and HubSpot doesn't retry it.
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
- Big-deal alert enrolls when this sets dealstage
- Deal handoff to onboarding enrolls when this sets dealstage
- Renewal reminder enrolls when this sets dealstage
Also set by other workflows: dealstage (Deal handoff to onboarding). Whichever runs last wins.
What it depends on
HubSpot dates that hit it
- December 4, 2026 in 47 days
Pipelines v1 API switched off (/crm-pipelines/v1/pipelines/deals) - September 2027 in about 10 months
v1 to v3 APIs and legacy apps lose support (/crm/v3/objects/deals)
History
| When | What happened |
|---|---|
| Oct 18, 2026 | Found Deal stage sync calls an API HubSpot is switching off |
| Oct 18, 2026 | Found Deal stage sync calls a HubSpot API that's losing support |
| Oct 18, 2026 | Found Deal stage sync reports success even when its requests fail |