<?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 Not seeing associations when retrieving contacts in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003071#M74871</link>
    <description>&lt;P&gt;When I make the following API call, I get properties in the response but no associations.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;`https://api.hubspot.com/crm/v3/objects/contacts/{contact_id}`&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The API schema suggests that if associations exist, I should also see the associations in the response to this call, but I do not see any associations. However, when I make an API call like&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;`https://api.hubspot.com/crm/v4/objects/contacts/{contact_id}/associations/leads`, I am able to see a lead association.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 20:46:28 GMT</pubDate>
    <dc:creator>fuzzy_mozzie</dc:creator>
    <dc:date>2024-07-09T20:46:28Z</dc:date>
    <item>
      <title>Not seeing associations when retrieving contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003071#M74871</link>
      <description>&lt;P&gt;When I make the following API call, I get properties in the response but no associations.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;`https://api.hubspot.com/crm/v3/objects/contacts/{contact_id}`&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The API schema suggests that if associations exist, I should also see the associations in the response to this call, but I do not see any associations. However, when I make an API call like&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;`https://api.hubspot.com/crm/v4/objects/contacts/{contact_id}/associations/leads`, I am able to see a lead association.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:46:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003071#M74871</guid>
      <dc:creator>fuzzy_mozzie</dc:creator>
      <dc:date>2024-07-09T20:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not seeing associations when retrieving contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003093#M74873</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/790200"&gt;@fuzzy_mozzie&lt;/a&gt;&amp;nbsp;- I believe you need to ask for the specific associations to be returned from the call for a contact or contacts:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveHTM_0-1720561467331.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121471i82AFF8383BFB2522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveHTM_0-1720561467331.png" alt="SteveHTM_0-1720561467331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this is on point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 21:46:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003093#M74873</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-07-09T21:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Not seeing associations when retrieving contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003099#M74874</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;, this helped, but I am still not getting the result I expected. In the Hubspot UI, I can see multiple tasks, emails, and notes logged in the activity tab, but when I query `&lt;A href="https://api.hubspot.com/crm/v3/objects/contacts/{contact_id}?associations=engagements`," target="_blank"&gt;https://api.hubspot.com/crm/v3/objects/contacts/{contact_id}?associations=engagements`,&lt;/A&gt;&amp;nbsp;I do not see any engagements. I have also tried `emails` and `tasks` to see if those show up in associations but no such luck. any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 22:08:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003099#M74874</guid>
      <dc:creator>fuzzy_mozzie</dc:creator>
      <dc:date>2024-07-09T22:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not seeing associations when retrieving contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003122#M74878</link>
      <description>&lt;P&gt;Hmm - I think you may be a little bit challenged by the gap between legacy object relationships and true "associations" as they have come to be defined over the last couple of years in HubSpot. Some of this data model logic seems to me to be a work in process - especially where engagments and files are involved. Others in the community more experienced than I may want to comment on status here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would tend to attack this problem by experimenting a bit with test calls to understand what associations really do exist in the schema - using the endpoint:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/associations/{fromObjectType}/{toObjectType}/labels" target="_blank"&gt;https://api.hubapi.com/crm/v4/associations/{fromObjectType}/{toObjectType}/labels&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or for a specific record:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}" target="_blank"&gt;https://api.hubapi.com/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've always gravitated towards the association calls for specific information rather than the overloaded resuklts from a mor egenral object query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The description of the available assoication types in the doc page here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/associations" target="_blank"&gt;https://developers.hubspot.com/beta-docs/guides/api/crm/associations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;may also give a sense of the current model setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:04:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Not-seeing-associations-when-retrieving-contacts/m-p/1003122#M74878</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-07-09T23:04:25Z</dc:date>
    </item>
  </channel>
</rss>

