CRM objects can be queried and rendered on HubSpot hosted content, allowing data to be shared between your business operations, website, and emails.
crm_object
, crm_objects
and crm_associations
HubL functions, you can display and control logic based on your CRM object data.
Using CRM data on your website means that your sales, marketing, and website data all live in the same place and will always reflect the same information. In addition, because you can associate CRM records with one another, you can also pull in associated data onto your website pages.
Similarly, you can create sets of dynamic pages that automatically generate using CRM object or HubDB data.
Object type | object_type_name | Fully qualified name |
---|---|---|
Products | product | PRODUCT |
Marketing events | marketing_event | MARKETING_EVENT |
Custom objects | Content Hub Enterprise only. You can either use the object’s fully qualified name, or the name that was entered at the time of creation. For example, if you create an object named Cars , you cannot reference it with cars or Car .You must use the fully qualified name if the custom object shares a name with a standard object. It’s also strongly recommended to use the FQN if the object name is fully uppercased to avoid potential conflicts with HubSpot’s standard objects. |
Object type | object_type_name | Fully qualified name |
---|---|---|
Contacts | contact | CONTACT |
Companies | company | COMPANY |
Deals | deal | DEAL |
Tickets | ticket | TICKET |
Quotes | quote | QUOTE |
Line items | line_item | LINE_ITEM |
crm_object
function to get a single record from the HubSpot CRM by query or by CRM record ID.
Object records are returned as a dict of properties and values.
crm_objects()
function to get CRM records by object type from the HubSpot CRM by query or by record ID. Records are returned as a dict of properties and values.
The record returned contains a results
property that can be looped through to display the information in the record’s items.
crm_associations
HubL function to get a list of associated records from the HubSpot CRM based on the given record ID, association category, and association definition ID.
Records are returned as a dict of properties and values.
name
, id
, fullyQualifiedName
, association IDs, and other details, you can make a GET
request to the CRM Objects schema API.
fullyQualifiedName
for account-specific object types includes the HubSpot account ID, so it’s recommended to avoid using it when developing your code for multiple HubSpot accounts.