Skip to content

docs(audiences): add FAQ for HubSpot deal stage filter requiring internal ID - #2298

Merged
george-dilthey merged 1 commit into
mainfrom
docsbot/doc-2042-intercom-tag-0824-ae9d678e
Aug 26, 2026
Merged

docs(audiences): add FAQ for HubSpot deal stage filter requiring internal ID#2298
george-dilthey merged 1 commit into
mainfrom
docsbot/doc-2042-intercom-tag-0824-ae9d678e

Conversation

@george-dilthey

@george-dilthey george-dilthey commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What changed

Added a new FAQ to docs/audiences.md: "Why does my HubSpot deal Stage filter return no results in a Companies audience?" — explaining that the Stage filter requires HubSpot's internal stage ID value (not the human-readable display name), with step-by-step instructions for finding the internal ID in HubSpot.

Why

A customer (Patrick Trost, Juicebox) could not filter their Companies audience by "Closed Won" HubSpot deal stage. They noticed "Closed Lost" worked when entering closedlost, but "Closed Won" — which in their custom pipeline uses a numeric internal ID — did not respond to "closed", "won", or "closedwon". The support agent (Bo) identified the root cause: Clay stores the raw HubSpot dealstage internal ID, not the display label. The workaround (look up the internal ID in HubSpot Settings → Objects → Deals → Pipelines) was confirmed working by the customer.

The docs had no mention of this behavior. The existing hubspot-integration-overview.md documents lifecycle stage internal codes in Clay tables, but nothing covers the deal Stage filter in Audiences.

Source link(s)

  • Intercom conversation: https://app.intercom.com/a/inbox/w28k1kwz/inbox/conversation/215475621643351
  • Slack trigger thread: https://clay-hq.slack.com/archives/C0BP6KUTYSH/p1787358696204259?thread_ts=1787358696.204259&cid=C0BP6KUTYSH
  • Support agent workaround (Bo's reply): https://clay-hq.slack.com/archives/C0BP6KUTYSH/p1787598363509389?thread_ts=1787358696.204259&cid=C0BP6KUTYSH
  • Docsbot Verifier sub-agent verdict: PASS — the verifier sub-agent confirmed the claim against real code in both repos. File:line citations from the verifier:
    • clay-base/apps/frontend/src/components/Sources/types/action/registry/HubspotSources.ts:118'Deal Stage': { path: ['properties.dealstage'], type: DataType.TEXT, filter: dealFilter } — the Audiences filter maps directly to HubSpot's raw dealstage property (the internal ID string), with no label resolution.
    • clay-base/services/big-source-sync/src/services/domain/hubspot/hubspot-crm-export-utils.ts:189–228buildHubspotCsvRowTransform casts booleans and numbers but does not transform dealstage — it is stored verbatim as-is from HubSpot.
    • clay-base/services/audiences/src/utils/field-mapping-helpers.ts:120–121 — For HubSpot imports, fieldId = mapping.hubspotFieldId reads the raw source field directly, confirming no label translation on the Audiences import path.
    • public-actions/apps/hubspot-new-ui/actions/utils.ts:379–384 — The regular Clay table enrichment path DOES add dealstageLabel by resolving the pipeline stage display name. The Audiences big-source-sync path has no equivalent — confirming the gap is real.
  • Verifier Slack context: No discrepancy. The Jan 2025 Slack announcement (Eric Engoron, #all-product-progress) confirmed readable labels were added to HubSpot deal enrichment action results in Clay tables (dealstageLabel) — but the verifier confirmed this does not apply to the Audiences filter path.

Uncertainties

None — the Docsbot Verifier sub-agent returned PASS. The customer confirmed the workaround worked. The HubSpot Deals in Audiences feature is gated (early access), consistent with the existing note in the doc.

Related observations

  • hubspot-integration-overview.md already has a FAQ about lifecycle stage internal codes (general case for Clay tables). No change needed there — this is an Audiences-specific issue.
  • Screenshots from the customer confirm the filter accepts free-text input (not a dropdown), consistent with the internal ID requirement.

Closes DOC-2042

…rnal ID

Customer could not filter Companies audience by Closed Won deal stage
because the Stage filter requires HubSpot's internal stage ID value,
not the human-readable display name. Adds FAQ with steps to look up
the internal ID in HubSpot Settings → Objects → Deals → Pipelines.

Closes DOC-2042
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

DOC-2042

@george-dilthey
george-dilthey marked this pull request as ready for review August 26, 2026 14:51
@george-dilthey
george-dilthey merged commit a1f15a3 into main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant