<?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: crm_associations dont seem to pull inside emails in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/753338#M32752</link>
    <description>&lt;P&gt;I pull the ID using the&amp;nbsp;personalization_token(), and this works just fine, but the 2nd part for the&amp;nbsp;crm_associations() returns nothing, dispite it working just fine on a webpage, and previewing as a contact that has the association.&lt;/P&gt;
&lt;P&gt;{% set contact_id = personalization_token('contact.hs_object_id', '') %}&lt;BR /&gt;{% set associated_objects = crm_associations(contact_id, "USER_DEFINED", 18, "limit=20&amp;amp;orderBy=-weekly_pay", "company,connect_url,title,description,weekly_pay,start_date,end_date,shift_length,address,city,state,zip") %}&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 14:11:57 GMT</pubDate>
    <dc:creator>Manobyte</dc:creator>
    <dc:date>2023-02-08T14:11:57Z</dc:date>
    <item>
      <title>crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/752149#M32722</link>
      <description>&lt;P&gt;Im trying to pull custom objects associated to contacts in an email. And I have confirmed that my code is working on regular pages, but it is blank when I put the module in an email. So im wondering, does the {{&amp;nbsp;crm_associations() }} function not work in emails? or is there a different way to pull that information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:56:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/752149#M32722</guid>
      <dc:creator>Manobyte</dc:creator>
      <dc:date>2023-02-06T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/752946#M32742</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/18498"&gt;@Manobyte&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! Can you share a code block or example? This helps the community to better understand possible root issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/428335"&gt;@jolle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72866"&gt;@Jake_Lett&lt;/a&gt;,&amp;nbsp;do you have any tips or thoughts you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/18498"&gt;@Manobyte&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:00:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/752946#M32742</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-02-07T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/753338#M32752</link>
      <description>&lt;P&gt;I pull the ID using the&amp;nbsp;personalization_token(), and this works just fine, but the 2nd part for the&amp;nbsp;crm_associations() returns nothing, dispite it working just fine on a webpage, and previewing as a contact that has the association.&lt;/P&gt;
&lt;P&gt;{% set contact_id = personalization_token('contact.hs_object_id', '') %}&lt;BR /&gt;{% set associated_objects = crm_associations(contact_id, "USER_DEFINED", 18, "limit=20&amp;amp;orderBy=-weekly_pay", "company,connect_url,title,description,weekly_pay,start_date,end_date,shift_length,address,city,state,zip") %}&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:11:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/753338#M32752</guid>
      <dc:creator>Manobyte</dc:creator>
      <dc:date>2023-02-08T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/754148#M32770</link>
      <description>&lt;P&gt;An update on this, I tryed using the&amp;nbsp;&lt;SPAN&gt;crm_associations() call with a static ID rather then the personalization token ID, and it did return the expected values. I then found someone with a similar porblem on the developer slack that sugested not using the personalization token, but rather just using the 'contact.hs_object_id' right in the association call like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;{% set associated_objects = crm_associations(contact.hs_object_id, "USER_DEFINED", 18, "limit=20&amp;amp;orderBy=-weekly_pay", "company,connect_url,title,description,weekly_pay,start_date,end_date,shift_length,address,city,state,zip") %}&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;And this has worked for me!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:03:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/754148#M32770</guid>
      <dc:creator>Manobyte</dc:creator>
      <dc:date>2023-02-09T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/754157#M32771</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/18498"&gt;@Manobyte&lt;/a&gt;! Thank you very much for sharing your solution here with the community 🧡 — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:08:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/754157#M32771</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-02-09T16:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations dont seem to pull inside emails</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/795481#M34217</link>
      <description>&lt;P&gt;I was not able to make it work, In only one case I've got an object representing an empty list while I had items in the association, I've tried with different association ids from the schema. In other cases even though the UI in the design tools was not showing error (it shows error on the line with&amp;nbsp;&amp;nbsp;crm_associations if the property is not found on the association) I've got a null in return.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any clue about what I may be doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 09:41:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-dont-seem-to-pull-inside-emails/m-p/795481#M34217</guid>
      <dc:creator>fregini</dc:creator>
      <dc:date>2023-05-18T09:41:43Z</dc:date>
    </item>
  </channel>
</rss>

