<?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: Get a specific deal associated contact in quotes by Its associated label in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/793452#M34150</link>
    <description>&lt;P&gt;Hi Jaycee,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you correctly understood the needed steps!&lt;/P&gt;&lt;P&gt;It would be great if we could declare an hubl variable (as we already do for other custom objects) so in the quote editor, I can use those variables in this way in the rich text module: {{ variableName.propertyName }}.&lt;/P&gt;&lt;P&gt;We also considered making an API call to retrieve those infos but we would need a serverless function to avoid having the private app token on the client.&lt;BR /&gt;&lt;BR /&gt;Even having a lambda function, could I set an hubl variable with the value returned by the API call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to have an hubl variable, so our customer can use It wherever he wants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot - Simone&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 16:29:24 GMT</pubDate>
    <dc:creator>simosanfilippo</dc:creator>
    <dc:date>2023-05-13T16:29:24Z</dc:date>
    <item>
      <title>Get a specific deal associated contact in quotes by Its associated label</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/791937#M34106</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello everyone!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a deal associated contact by Its associated label in a quote.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;If I use the hubl 'crm_associations' function in a module with hardcoded values I can see the result in the module preview, but when I use the module in a quote template no result is shown.&lt;/DIV&gt;&lt;DIV class=""&gt;This is because of a restriction specified in the &lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#hs_cos_wrapper_module_1611592053481" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;:&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;'Please note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for security purposes, of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/crm-setup/get-started-with-objects#standard-objects" target="_blank" rel="noopener"&gt;HubSpot standard object types&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;marketing_event&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;objects can be retrieved on a publicly accessible page. Any other standard object type must be hosted on a page which is either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/cos-pages-editor/how-can-i-password-protect-my-pages" target="_blank" rel="noopener"&gt;password protected&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or requires a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/cms-pages-editor/control-audience-access-to-pages" target="_blank" rel="noopener"&gt;CMS Membership login&lt;/A&gt;.&amp;nbsp; Custom objects do not have this same restriction.'&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;(Note that contact and deal are both default objects and the quote is not a password protected page)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;If I use personalization tokens, and more than one contact is associated to the deal, only one contact info is shown (and there is no way to specify which I want to be shown):&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simosanfilippo_3-1683704351452.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/90634i4C362D5579B3D9B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simosanfilippo_3-1683704351452.png" alt="simosanfilippo_3-1683704351452.png" /&gt;&lt;/span&gt;&lt;P&gt;Apparently in this case the first associated contact is shown.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;By default, in a quote base.html file, some variables are set:&lt;/P&gt;&lt;P&gt;{% set DEAL = ASSOCIATED_OBJECTS.deal %}&lt;/P&gt;&lt;P&gt;In deal associated objects not all contact infos are stored (for example the associated label), so I can't get those infos from that variable.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, is there any way to print a specific deal associated contact infos by Its associated label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help,&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 May 2023 07:58:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/791937#M34106</guid>
      <dc:creator>simosanfilippo</dc:creator>
      <dc:date>2023-05-10T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get a specific deal associated contact in quotes by Its associated label</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/792881#M34127</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/542526"&gt;@simosanfilippo&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to invite the community into the conversation — hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;would this be a good fit for a serverless function? I feel like I understand the needed steps, but not the execution:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get all associated contacts for the given deal ID&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;get detailed information for each contact,&amp;nbsp;and identify the contact with the required associated label&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;call the function from the quote template to get the required information&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any thoughts on other workarounds?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much for taking a look! — Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:41:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/792881#M34127</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-05-11T20:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get a specific deal associated contact in quotes by Its associated label</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/793452#M34150</link>
      <description>&lt;P&gt;Hi Jaycee,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you correctly understood the needed steps!&lt;/P&gt;&lt;P&gt;It would be great if we could declare an hubl variable (as we already do for other custom objects) so in the quote editor, I can use those variables in this way in the rich text module: {{ variableName.propertyName }}.&lt;/P&gt;&lt;P&gt;We also considered making an API call to retrieve those infos but we would need a serverless function to avoid having the private app token on the client.&lt;BR /&gt;&lt;BR /&gt;Even having a lambda function, could I set an hubl variable with the value returned by the API call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to have an hubl variable, so our customer can use It wherever he wants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot - Simone&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 16:29:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-a-specific-deal-associated-contact-in-quotes-by-Its/m-p/793452#M34150</guid>
      <dc:creator>simosanfilippo</dc:creator>
      <dc:date>2023-05-13T16:29:24Z</dc:date>
    </item>
  </channel>
</rss>

