<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fetching Associated Custom Objects into Quote template in Sales Hub Tools</title>
    <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646957#M7366</link>
    <description>&lt;P&gt;Thank you for sharing this answer&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 12:36:36 GMT</pubDate>
    <dc:creator>TitiCuisset</dc:creator>
    <dc:date>2022-06-09T12:36:36Z</dc:date>
    <item>
      <title>Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646042#M7358</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;So i am creating a custom quote template that can be generated from a deal, and that gets populated from the deal itself and the objects associated to it.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;So far i was able to fetch property value from the deal, company and contact object. (For example contact first name+last name, deal bank name, company name,...)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-08 at 8.51.32 AM.png" style="width: 792px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/68130iA2BCD21EE1EAFC03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-06-08 at 8.51.32 AM.png" alt="Screen Shot 2022-06-08 at 8.51.32 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;But when i try to fetch a certain property value from the custom object associated to the deal, it is not working when i try the same method as the contact and deal object.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I was able to fetch all the properties of the associated custom object using the below lines of code:&lt;BR /&gt;&lt;FONT size="2"&gt;{% setcustomobject=QUOTE.associated_objects.deal.associated_objects.custom_objects %}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;{% for Property in customobject %}&lt;BR /&gt;{{ Property }}&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;&amp;nbsp;Note to avoid confusion: my custom object is named "Property". It refer to a property/house&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The above line of code returns the following (All the properties in the associated custom object).&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-08 at 8.49.32 AM.png" style="width: 681px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/68131i4BE2B99CBA439907/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-06-08 at 8.49.32 AM.png" alt="Screen Shot 2022-06-08 at 8.49.32 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I almost tried everything to try to fetch only the "property_name" for example, but it wouldn't work. I just want to be able to call only one property value from the associated custom object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Thanks in advance for any input you couple provide.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 04:59:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646042#M7358</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-06-08T04:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646848#M7363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out and for all the details!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts here -&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;do you have any advice for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 08:28:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646848#M7363</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2022-06-09T08:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646887#M7365</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150"&gt;@TitiCuisset&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please note that i was able to solve the above issue by referencing the custom object type ID found the the index page of the custom object:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;{% set customobject = template_data.quote.associated_objects.deal.associated_objects.custom_objects.customobjecttypeID %}&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:53:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646887#M7365</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-06-09T09:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646957#M7366</link>
      <description>&lt;P&gt;Thank you for sharing this answer&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 12:36:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/646957#M7366</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2022-06-09T12:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/692444#M7728</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the dummy question, but where do you copy these lines of code, inside your custom Quote template? I mean in which "Container" of the custom Quote template?&amp;nbsp;&lt;BR /&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 06:32:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/692444#M7728</guid>
      <dc:creator>Gabriel_Guigue</dc:creator>
      <dc:date>2022-09-13T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/692502#M7729</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76533"&gt;@Gabriel_Guigue&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;You can use these lines of codes inside your HTML/Hubl quote template in the design manager tab&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 08:33:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/692502#M7729</guid>
      <dc:creator>ChrisChiha</dc:creator>
      <dc:date>2022-09-13T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/699900#M7788</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909" target="_blank"&gt;@ChrisChiha&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for your prompt reply.&lt;BR /&gt;Inside the design manager, I cannot see the&amp;nbsp;HTML/Hubl quote template. Maybe I'm not looking inside the right place. Could you please share a screenshot?&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 10:37:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/699900#M7788</guid>
      <dc:creator>Gabriel_Guigue</dc:creator>
      <dc:date>2022-09-29T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/852552#M9239</link>
      <description>&lt;P&gt;For example if you custon object ID is:&amp;nbsp; &lt;STRONG&gt;2_4679355&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;you can use:&lt;BR /&gt;{% set customobject = template_data.quote.associated_objects.deal.associated_objects.custom_objects._2_4679355 %}&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 17:24:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/852552#M9239</guid>
      <dc:creator>WPeraltaLópez</dc:creator>
      <dc:date>2023-09-20T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/853547#M9256</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192170"&gt;@WPeraltaLópez&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/264909"&gt;@ChrisChiha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This post helped me greatly.&lt;/P&gt;&lt;P&gt;One thing I just cannot find anywhere, literally anywhere is the syntax for using values from properties of Custom Objects. I can output the properties of the associated Custom Object, but using the same HubL syntax as other OOB modules used by Quote Templates I cannot get values from Custom Object properties to display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying it like this:&lt;/P&gt;&lt;P&gt;{{ BILLING_ENTITY.billing_entity }}&lt;/P&gt;&lt;P&gt;which should output "HubSpot" for example where HubSpot is the text value of the Custom Object property with the internal name: billing_entity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{# associated company data: name, address, city, state, zip, country #}
{% from '../../imports/mock_data.html' import SAMPLE_TEMPLATE_DATA as mock_data %}
{% set module_data = template_data.module_data %}
{% set QUOTE = template_data.quote || mock_data.quote %}
{% set DEAL = QUOTE.associated_objects.deal %}
{% set BUYER_CONTACTS = QUOTE.associated_objects.contacts %}

{# data to pull from Billing Entities custom object #}
{% set BILLING_ENTITY = template_data.quote.associated_objects.deal.associated_objects.custom_objects._2_17681733 %}

this should display the billing entity name value: {{ BILLING_ENTITY.billing_entity }}
&amp;lt;br /&amp;gt;
this should display the billing address line 1 value: {{ BILLING_ENTITY.billing_entity__address_line_1 }}
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;

{# this is for debugging to prove that the custom object is available #}
{% for billing_entities in BILLING_ENTITY %}
{{ billing_entities }}
{% endfor %}

{% if module.show_billing_entity_name &amp;amp;&amp;amp; BILLING_ENTITY.billing_entity %}
&amp;lt;span&amp;gt;
  &amp;lt;b&amp;gt;{{ BILLING_ENTITY.billing_entity }}&amp;lt;/b&amp;gt;
&amp;lt;/span&amp;gt;
&amp;lt;br&amp;gt;
{% endif %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 23:52:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/853547#M9256</guid>
      <dc:creator>jeremymandle</dc:creator>
      <dc:date>2023-09-21T23:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Associated Custom Objects into Quote template</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/853577#M9257</link>
      <description>&lt;P&gt;Figured it out. Rookie mistake and I am an uber-rookie at HubSpot.&lt;/P&gt;&lt;P&gt;Forgot to wrap the whole thing in a simple "for" loop like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% for billing_entities in BILLING_ENTITY %}
  {{ billing_entities.billing_entity }}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 12:35:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Fetching-Associated-Custom-Objects-into-Quote-template/m-p/853577#M9257</guid>
      <dc:creator>jeremymandle</dc:creator>
      <dc:date>2023-09-22T12:35:05Z</dc:date>
    </item>
  </channel>
</rss>

