APIs & Integrations

JamesR_INT
Participant

Fetching Associated Properties w/o API

SOLVE

https://developers.hubspot.com/docs/platform/create-ui-extensions#fetch-crm-property-data

 

fetchCrmObjectProperties allows the user to pull any properties from the object that the user is currently interacting with to then use them/display them. My curiosity and question is can this same fetch be used to gather associated objects and their properties?

Can I have a custom card on the company record and pull in the associated contact(s)' data within that card without having to do an API call? 

If not, is there any other way to fetch associated object properties without an api call?

0 Upvotes
1 Accepted solution
zach_threadint
Solution
Guide

Fetching Associated Properties w/o API

SOLVE

Hi @JamesR_INT 👋

 

As far as I can tell, fetchCrmObjectProperties will only allow you to retrieve properties relating to the given object-type (i.e. not properties relating to object-types of associated records). What you might like to consider using is the CrmAssociationPropertyList  UI extension component. This "component renders a list of properties belonging to a record associated with the currently displaying record".

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

1 Reply 1
zach_threadint
Solution
Guide

Fetching Associated Properties w/o API

SOLVE

Hi @JamesR_INT 👋

 

As far as I can tell, fetchCrmObjectProperties will only allow you to retrieve properties relating to the given object-type (i.e. not properties relating to object-types of associated records). What you might like to consider using is the CrmAssociationPropertyList  UI extension component. This "component renders a list of properties belonging to a record associated with the currently displaying record".

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.