Fix HubSpot Lifecycle Stages
Ensure every contact and company has an appropriate lifecycle stage: backfill missing, correct disallowed values, and add prevention workflows. Records without a stage are invisible in pipeline reports and excluded from stage-based workflows; lifecycle data is a prerequisite for lead scoring.
Critical: forward-only progression
Default order: Subscriber > Lead > MQL > SQL > Opportunity > Customer > Evangelist. To move a record to an earlier stage you must (1) clear lifecyclestage (set to ""), then (2) set the new value, as two separate API calls. A direct set to an earlier stage is silently rejected — no error, value unchanged. This is the most common gotcha.
# WRONG — silently fails if current stage is later than target
update(contact_id, {"properties": {"lifecyclestage": "lead"}})
# CORRECT — clear, then set
update(contact_id, {"properties": {"lifecyclestage": ""}})
update(contact_id, {"properties": {"lifecyclestage": "lead"}})
Plan
Audit missing/disallowed stages → define disallowed→correct mapping → fix disallowed (clear+set) → set missing with company context → fix stuck records → add prevention workflows → verify 100% coverage.
Before state
Use NOT_HAS_PROPERTY to count contacts and companies with no stage; count contacts at each stage (subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other).
Define your disallowed stages and mappings (business-specific). Common examples: blank → Lead; Subscriber → Lead (if not newsletter-only); Other → Lead; Evangelist → Customer or Lead.
Execute
- Fix disallowed stages — for each disallowed value, paginate and apply clear-then-set (two calls; batch API 100/call where possible).
- Set missing contact stages with context — contacts at Customer companies → Customer; at Opportunity companies → Opportunity; else → Lead. (Manual: build lists by associated-company stage and bulk edit.)
- Fix companies without a stage — closed-won deals → Customer; open deals → Opportunity; else → Lead.
- Fix stuck records — read current stage; if later than target, clear first, then set.
- Prevention workflows — Contact-based: trigger
lifecyclestageis unknown, re-enroll ON, action set to Lead, enroll existing. Company-based: same pattern. Optionally add disallowed-stage correction workflows.
After state
Re-run the audit: missing-stage counts should be 0 for both contacts and companies; spot-check context-assigned records match their company stage.