At risk
Big-deal alert
Workflow custom code · Deals · Node.js 20. Checked Oct 18, 2026, 4:26 PM.
2 problems
At riskHubSpot can't see this
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, 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.
At riskHubSpot can't see this
A credential is pasted directly into the code (line 1) instead of stored in HubSpot Secrets. Anyone who can edit workflows can copy it.
How to fix. Move it into the custom code action's Secrets, read it with process.env, and rotate the exposed credential.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
How it connects
Set off by
- Deal stage sync sets dealstage (set in custom code)
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 |
|---|---|---|---|
| dealstage | Enrolls on it (contractsent) | Enrollment trigger |
History
| When | What happened |
|---|---|
| Oct 18, 2026 | Found Big-deal alert reports success even when its requests fail |
| Oct 18, 2026 | Found Big-deal alert has a credential pasted into its code |