CMS Development

ACarrillo7
Member

Get associations in Hubl withouth association ID

Is there a way to retrieve associations without harcoding the association Id between two objects?

Currently, we can use crm_associations function but I strictly need to set the association id, since I'm working on a shareable theme, I really don't want to hard-code the id.

 

Any ideas?

0 Upvotes
2 Replies 2
ACarr3
Member

Get associations in Hubl withouth association ID

Hi, yes I need to show custom associations, created a custom object and I just want to show all the objects associated to that custom object.

 

Thank you for your response!

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Get associations in Hubl withouth association ID

Hi, @ACarrillo7 👋 Thanks for the great question. You definitely have valid concerns around hardcoding these values.

 

I have a few questions to help our community better understand your project:

  • Are these HubSpot defined associations? Or are there custom associations to be considered as well?
  • What's the end goal for retrieving these associations within your theme?

While HubL is powerful, it does have its limitations. Knowing more about the context of your use case can help our community help you.

 

Thanks for the additional information.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes