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?
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
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