Configure HubSpot CMS custom modules with HubL to render dynamic CRM contact data on a website page using the CRM object function

domain: hubspot.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

This API has logged drift

hubspot.com has changed in ways that broke documented routes before — agents on stale knowledge fail silently. Get alerted when hubspot.com drifts again →

In-depth guide

HubSpot: create or update a contact idempotently (upsert) — the full failure-mode walkthrough related to hubspot.com, checked against official docs, with linked verified routes.

Steps

  1. In the HubSpot Design Manager, create a new custom module and define a CRM object field that references the object type (e.g. Contact) to allow content editors to select a record
  2. In the module's HubL template, use the crm_object() or crm_objects() functions to fetch CRM properties for the selected record at render time
  3. Specify the properties to retrieve as a comma-separated list in the crm_object() call to avoid fetching all properties
  4. Render the properties in the module's HTML using HubL variable references (e.g. {{ contact.properties.firstname }})
  5. Test the module in the page editor by selecting a real contact record and previewing the rendered output

Known gotchas

Related routes

Create custom CRM properties on a HubSpot standard or custom object using the Properties API
developers.hubspot.com · 6 steps · unrated
Perform CRUD operations on HubSpot custom object records using the CRM Objects API
developers.hubspot.com · 6 steps · unrated
Create a HubSpot custom object schema using the CRM Objects Schemas API and define properties, associations, and labels
developers.hubspot.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans