Need to retrieve specific HubSpot records by ID? The [HubSpot.Property:] macro lets you fetch individual Companies, Contacts, Deals, and Owners with precise control over properties and associations.
What Does It Do?
The macro retrieves a single HubSpot entity by ID and returns it as a JSON object. It’s perfect for lookup operations, drill-down reports, or enriching data when you know the entity’s unique identifier.
Supported Types:
- Account (Company) - Organizations
- Contact - Individual people
- Deal - Sales opportunities
- Owner - HubSpot users
Key Features
Custom Properties - Request specific fields or get defaults
Association Loading - Fetch related entities in one call
JSON Path Extraction - Extract specific values from results
Variable Storage - Save results for reuse with =>VariableName
Quick Examples
Get Deal with Contacts
[HubSpot.List: type=Deal, =>DealsList]
[ForEach: values={=DealsList}, storeAs=Deal]
[.:Deal.id, =>DealId]
[HubSpot.Property: id={DealId}, type=Deal, associations=Contact, =>DealData]
[EndForEach:]
Extract Company Domain
[HubSpot.List: type=Account, =>AccountsList]
[ForEach: values={=AccountsList}, storeAs=Account][.:Account.id, =>AccountId]
Domain: [HubSpot.Property: id={AccountId}, type=Account, jsonPath=properties.domain]
[EndForEach:]
Get Owner Email
[HubSpot.List: type=Owner, =>OwnersList]
[ForEach: values={=OwnersList}, storeAs=Owner][.:Owner.id, =>OwnerId]
Email: [HubSpot.Property: id={OwnerId}, type=Owner, jsonPath=email]
[EndForEach:]
Parameters
Required
id- HubSpot entity ID (long integer)type- Entity type:Account,Contact,Deal, orOwner
Optional
properties- Semicolon-separated list (e.g.,name;domain;industry)associations- Related entities:Account,Contact, orDealjsonPath- Extract specific values (e.g.,properties.domain)connectionName- Override default connectionstoreAs/=>- Store result in variable
Limitations
propertiesandassociationshave no effect forOwnertype- Uses HubSpot API v3
- Single entity only (use
HubSpot.Listfor bulk operations)
Getting Started
Simple test to verify your connection:
[HubSpot.List: type=Owner, =>Owners]
[Json.Item: value={=Owners}, jsonPath=`$[0].id`, =>FirstOwnerId]
[HubSpot.Property: id={FirstOwnerId}, type=Owner, =>OwnerDetails]
Owner: [.:OwnerDetails.firstName] [.:OwnerDetails.lastName]
Email: [.:OwnerDetails.email]
More details can be found in the Docs app here.
Questions? Share your HubSpot integration use cases in the comments!