We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 24, 2022 6:47 AM
Hello,
So i have quotes up and running. Internal teams can generate a quote from the deal and it will fetch all the associated custom objects to the deal and display them on the quote.
To do so, i am using the below code:
{% set customobject = template_data.quote.associated_objects.deal.associated_objects.custom_objects.ObjectID %}
This however, is fetching all the associated objects. I would like to fetch the associated objects that have a certain association label.
I already got the association type id (298), but i don;t know how to add to the above line of code so that i can only filter/fetch the objects with this specific association label.
Thank you!
Solved! Go to Solution.
Nov 30, 2022 1:10 AM - edited Nov 30, 2022 1:11 AM
Hey @kvonloesecke ,
Thanks for your reply, this issue was sorted.
Code used to fetch associated custom objects based on association label:
{% set quote_associated_object = crm_associations(template_data.quote.associated_objects.deal.hs_object_id, "USER_DEFINED", "association type ID", "limit=200", "property field that you need to fetch from the custom object - internal name", false) %}
Regards,
@ChrisChiha
Nov 29, 2022 8:09 AM
Hi @ChrisChiha,
Thank you for reaching out!
Hey @LMeert, @himanshurauthan, @JBeatty - Would you be able to lend a hand?
Thanks! ⭐
Best,
Kristen
![]() | Did you know that the Community is available in other languages? Join regional conversations by changing your language settings ! |
Nov 30, 2022 1:10 AM - edited Nov 30, 2022 1:11 AM
Hey @kvonloesecke ,
Thanks for your reply, this issue was sorted.
Code used to fetch associated custom objects based on association label:
{% set quote_associated_object = crm_associations(template_data.quote.associated_objects.deal.hs_object_id, "USER_DEFINED", "association type ID", "limit=200", "property field that you need to fetch from the custom object - internal name", false) %}
Regards,
@ChrisChiha
Nov 30, 2022 4:30 AM
Hey @ChrisChiha,
Thank you for sharing this update with us!
Glad to hear you were able to resolve it 🙂
Best,
Kristen
![]() | Did you know that the Community is available in other languages? Join regional conversations by changing your language settings ! |