Broken
Lead routing · assign owner
Workflow custom code · Contacts · Node.js 20. Checked Oct 18, 2026, 4:26 PM.
1 problem
Broken
Uses the property "lead_region", which doesn't exist in this account. Closest match: "sales_region". Check that's the one intended.
Suggested fix. Replaces "lead_region" with "sales_region". Confirm before applying.
- await client.crm.contacts.basicApi.update(event.object.objectId, { properties: { lead_region: region } });
+ await client.crm.contacts.basicApi.update(event.object.objectId, { properties: { sales_region: region } });
await client.crm.contacts.basicApi.update(event.object.objectId, { properties: { sales_region: region } });
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 |
|---|---|---|---|
| state | Enrolls on it | Enrollment trigger | |
| lead_region | Sets it | Custom code, step 1, line 5 HubSpot can't see this | Doesn't exist |
History
| When | What happened |
|---|---|
| Oct 18, 2026 | Found Lead routing · assign owner uses a property that doesn't exist |