<?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 HubL function not working; CRM API works in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838811#M66737</link>
    <description>&lt;P&gt;That step was already completed. I edited the association labels of the contacts and added 4 associations labels. Those are the 4 associations which are returned via the rest api when a GET objects/deal/&amp;lt;id&amp;gt;/associations/contact. The issue I'm seeing is those associations are not returned by the HubL function.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 12:27:53 GMT</pubDate>
    <dc:creator>SPatterson8</dc:creator>
    <dc:date>2023-08-23T12:27:53Z</dc:date>
    <item>
      <title>crm_associations HubL function not working; CRM API works</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838549#M66707</link>
      <description>&lt;P&gt;I have a quote template which is using the crm_associations function to return a list of contacts for the current deal by an association label.&amp;nbsp; I can list the associations between records via the rest api but not via the HubL function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simplified example (&lt;/P&gt;&lt;P&gt;deal.hs_object_id = 10544008363&lt;BR /&gt;contact.hs_object_id = 52486601&lt;/P&gt;&lt;P&gt;) :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{% set deal =template_data.quote.associated_objects.deal %}&lt;BR /&gt;{% set associations = crm_associations(deal.hs_object_id, "USER_DEFINED", 35) %}&lt;BR /&gt;{{associations|pprint }}&lt;SPAN&gt;&amp;nbsp;%}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OUTPUT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(CrmObjectList: {hasMore=false, offset=0, results=[], total=0})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CRM data via the rest api shows the association is there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Association type id 35 is defined for deals to contacts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/associations/deal/contacts/labels" target="_blank"&gt;https://api.hubapi.com/crm/v4/associations/deal/contacts/labels&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"results": [{&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 40,&lt;BR /&gt;"label": "myLabel1"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 41,&lt;BR /&gt;"label": "myLabel2"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "HUBSPOT_DEFINED",&lt;BR /&gt;"typeId": 3,&lt;BR /&gt;"label": null&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;&lt;STRONG&gt;"typeId": 35,&lt;/STRONG&gt;&lt;BR /&gt;"label": "myLabel3"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 33,&lt;BR /&gt;"label": "myLabel4"&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a specific association between the two record ids I queried in the crm_associations function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/objects/deal/" target="_blank"&gt;https://api.hubapi.com/crm/v4/objects/deal/&lt;/A&gt;&lt;STRONG&gt;10544008363&lt;/STRONG&gt;/associations/contact&lt;BR /&gt;{&lt;BR /&gt;"results": [{&lt;BR /&gt;"toObjectId": &lt;STRONG&gt;52486601&lt;/STRONG&gt;,&lt;BR /&gt;"associationTypes": [{&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 41,&lt;BR /&gt;"label": "myLabel2"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "HUBSPOT_DEFINED",&lt;BR /&gt;"typeId": 3,&lt;BR /&gt;"label": null&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 35,&lt;BR /&gt;"label": "myLabel3"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 33,&lt;BR /&gt;"label": "myLabel4"&lt;BR /&gt;}, {&lt;BR /&gt;"category": "USER_DEFINED",&lt;BR /&gt;"typeId": 40,&lt;BR /&gt;"label": "myLabel1"&lt;BR /&gt;}]&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same results when I tried a different association type.&amp;nbsp; Present in the rest api but not in the HubL function.&lt;/P&gt;&lt;P&gt;{% set deal_ass = crm_associations(DEAL.hs_object_id, "HUBSPOT_DEFINED", 3) %}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OUTPUT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(CrmObjectList: {hasMore=false, offset=0, results=[], total=0})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help troubleshooting would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 00:13:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838549#M66707</guid>
      <dc:creator>SPatterson8</dc:creator>
      <dc:date>2023-08-23T00:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations HubL function not working; CRM API works</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838736#M66727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/619899"&gt;@SPatterson8&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow the following instructions.&lt;/P&gt;
&lt;P&gt;1. Firstly go to deal and in right side bar you can see contact detail.&lt;/P&gt;
&lt;P&gt;2. In contact details, Click more link shown in screenshot below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GRajput_0-1692785884744.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97490iA4901F8CCEA06C83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GRajput_0-1692785884744.png" alt="GRajput_0-1692785884744.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Now click on edit association and select label shown in screenshot below,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GRajput_1-1692785957642.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97492iD59E3755BDA6F727/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GRajput_1-1692785957642.png" alt="GRajput_1-1692785957642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now your hubl code will return required output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;Hope this will helps you out. Please mark it as Solution Accepted &amp;amp; Upvote to help other Community member.\nThanks!&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:769,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0}"&gt;Hope this will helps you out. Please mark it as &lt;STRONG&gt;Solution Accepted &amp;amp; Upvote&lt;/STRONG&gt; to help other Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 10:20:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838736#M66727</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2023-08-23T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations HubL function not working; CRM API works</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838811#M66737</link>
      <description>&lt;P&gt;That step was already completed. I edited the association labels of the contacts and added 4 associations labels. Those are the 4 associations which are returned via the rest api when a GET objects/deal/&amp;lt;id&amp;gt;/associations/contact. The issue I'm seeing is those associations are not returned by the HubL function.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:27:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/838811#M66737</guid>
      <dc:creator>SPatterson8</dc:creator>
      <dc:date>2023-08-23T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: crm_associations HubL function not working; CRM API works</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/1046200#M76930</link>
      <description>&lt;P&gt;Hello OP,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For security purposes, of the&amp;nbsp;HubSpot standard object types&amp;nbsp;only the&amp;nbsp;product, and&amp;nbsp;marketing_event&amp;nbsp;objects can be retrieved on a publicly accessible page. Any other standard object type must be hosted on a page which is either&amp;nbsp;password protected&amp;nbsp;or requires a&amp;nbsp;CMS Membership login.&amp;nbsp; Custom objects do not have this same restriction.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 05:17:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/crm-associations-HubL-function-not-working-CRM-API-works/m-p/1046200#M76930</guid>
      <dc:creator>edytajordan</dc:creator>
      <dc:date>2024-09-26T05:17:33Z</dc:date>
    </item>
  </channel>
</rss>

