<?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 custom objects empty in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891781#M37053</link>
    <description>&lt;P&gt;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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for much for replying and pointing me in the right direction!&lt;/P&gt;
&lt;P&gt;Using the debug function I was finally able to see the problem - I was maxing out calls to the crm_associations function, as I was looping through too many times in my code. Hence why it worked once in the page but was empty further down.&lt;/P&gt;
&lt;P&gt;I hadn't played with GraphQL&amp;nbsp; before - but thanks to your suggestion I've rewritten the module using a graphQL query to retrieve all the data in one go - and it's now working fantastically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your help!&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 09:36:47 GMT</pubDate>
    <dc:creator>NickPrice</dc:creator>
    <dc:date>2023-12-11T09:36:47Z</dc:date>
    <item>
      <title>crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/890469#M37012</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to pull out associations between two custom object types (workshop and trainer), in hubl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{% set trainerAssoc = crm_associations(workshop.id,"USER_DEFINED",49) %}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working correctly for one workshop, but returning an empty result for another workshop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both workshops have a trainer associated with them.&lt;/P&gt;
&lt;P&gt;A test API call IS returning a result as such:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://api.hubspot.com/crm/v4/objects/2-109715420/622682310/associations/2-108618361" target="_blank" rel="noopener"&gt;https://api.hubspot.com/crm/v4/objects/2-109715420/622682310/associations/2-108618361&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"results"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"toObjectId"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;475685066&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&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t;P&gt;but, there are no results via the crm_associations method for the exact same object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why could this be happening?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:00:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/890469#M37012</guid>
      <dc:creator>NickPrice</dc:creator>
      <dc:date>2023-12-07T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891198#M37037</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question! I'd like to invite some of our community members to join the converstaion — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92197"&gt;@albertsg&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/61659"&gt;@Stephanie-OG&lt;/a&gt;, do&amp;nbsp;you have any troubleshooting tips or HubL wisdom you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 17:41:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891198#M37037</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-12-08T17:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891645#M37048</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible that this is a bug! We've seen this happen in multiple portals at Impulse Creative. Notably portals that predated custom associations and/or association labels. I would collect this information and relay it to the support team via a ticket. With enough information the HS team is usually able to figure out whats going on and get it fixed within a few days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is good news, if you switch from using the crm_associations function to &lt;A href="https://developers.hubspot.com/docs/cms/data/query-hubspot-data-using-graphql" target="_blank"&gt;GraphQL&lt;/A&gt;&amp;nbsp;to retrieve the association data, you can circumvent the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I can help answer any queestions please don't hesitate to reach out&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Kevin-C&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 17:24:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891645#M37048</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2023-12-10T17:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891781#M37053</link>
      <description>&lt;P&gt;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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for much for replying and pointing me in the right direction!&lt;/P&gt;
&lt;P&gt;Using the debug function I was finally able to see the problem - I was maxing out calls to the crm_associations function, as I was looping through too many times in my code. Hence why it worked once in the page but was empty further down.&lt;/P&gt;
&lt;P&gt;I hadn't played with GraphQL&amp;nbsp; before - but thanks to your suggestion I've rewritten the module using a graphQL query to retrieve all the data in one go - and it's now working fantastically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your help!&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 09:36:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/891781#M37053</guid>
      <dc:creator>NickPrice</dc:creator>
      <dc:date>2023-12-11T09:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1176442#M43546</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;&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/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Do we know if this was ever figured out? I am running into the same issue in Hubl, whereas the crm_associations() function is not returning associated Listing objects that I know exist and are associated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    {% set associated_listings = crm_associations(contact.hs_object_id, 'HUBSPOT_DEFINED', 883) %}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This is returning a null value. However, like&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;&amp;nbsp;, I am able to verify that I can fetch this same association via the API. There's some server-side logic with the crm_associations() function that either the product team or someone else hasn't rolled out yet with the newer Listings object, as far as I can tell.&amp;nbsp; Regardless, this is very important to me, as I can't actually use the object until this function is fixed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any ideas here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 23:16:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1176442#M43546</guid>
      <dc:creator>Patrick216</dc:creator>
      <dc:date>2025-07-14T23:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1176513#M43547</link>
      <description>If i remember correctly i think it was to do with rate limits per page for calling the crm_associations function. Adding ?hsDebug=1 to the url may reveal this in the debug code.&lt;BR /&gt;&lt;BR /&gt;I think i got around this by rewriting my code to use a graphql query instead. hope that helps!&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jul 2025 06:46:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1176513#M43547</guid>
      <dc:creator>NickPrice</dc:creator>
      <dc:date>2025-07-15T06:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1182082#M43683</link>
      <description>&lt;P&gt;Ah thanks. But unfortunately that's not quite it for me.&lt;/P&gt;&lt;P&gt;The crm_associations() function is simply not working for the Listings object. Should be a simple fix for Hubspot, though. Works for deals, contacts, and just about everything else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 01:21:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1182082#M43683</guid>
      <dc:creator>Patrick216</dc:creator>
      <dc:date>2025-07-29T01:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations custom objects empty</title>
      <link>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1182278#M43686</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/915201"&gt;@Patrick216&lt;/a&gt;&lt;/SPAN&gt;, welcome to the HubSpot Community! &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;and thanks &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/545889"&gt;@NickPrice&lt;/a&gt;&lt;/SPAN&gt; for your help! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for raising this issue and providing clear feedback. I am sorry to hear the experience you are having with the crm_association() function.&lt;BR /&gt;&lt;BR /&gt;It sounds like you’ve done your due diligence testing the crm_associations() function across different objects, really appreciate you sharing those details with us.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best next step here would be for you to share your use case in more detail (for example how you’re leveraging Listings and associations) via the &lt;A href="https://developers.hubspot.com/feedback" target="_blank"&gt;HubSpot Developer Feedback Form&lt;/A&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience and for helping make the platform better with your feedback!&lt;BR /&gt;&lt;BR /&gt;Have a lovely day and I look forward to seeing you around!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 11:48:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/crm-associations-custom-objects-empty/m-p/1182278#M43686</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-07-29T11:48:49Z</dc:date>
    </item>
  </channel>
</rss>

