<?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 Pagination of Associations inside a API call in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/925962#M71363</link>
    <description>&lt;P&gt;I use the following format to be able to retrieve all the data for a given object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;function.basic_api.get_page(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;limit&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;properties&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;properties,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;associations&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; associations,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;archived&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;after)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For this purpose I use pagination with the value at &lt;STRONG&gt;''response.paging.next.after''&lt;/STRONG&gt; and add it to the &lt;STRONG&gt;'after'&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;But if there are &lt;EM&gt;associations &lt;/EM&gt;that specifically require pagination, there are new keys for each of the association type. Named as&lt;BR /&gt;&lt;STRONG&gt;'associations.contacts.paging.next.after'&lt;/STRONG&gt; or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'associations.companies.paging.next.after'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;How should I query them to get all the associations for the given record?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 Feb 2024 21:45:51 GMT</pubDate>
    <dc:creator>GKurtulmus</dc:creator>
    <dc:date>2024-02-20T21:45:51Z</dc:date>
    <item>
      <title>Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/924929#M71166</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently creating a API connector to extract data from HubSpot to a datawarehouse solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the&amp;nbsp;GET /crm/v3/objects/&amp;lt;object&amp;gt; endpoints to do most of the extraction. Here we also ask for all associations for each object to any object. These associations also come with separate pagination links. We handle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: we see that when running a full load using these endpoints we end up missing a bunch of associations. We are certain we are picking up all associations on "first page" (together with the object properties) and all subsequent pagination pages for each type of association.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we have identified some missing associations we can make a call to the associations endpoint, eg:&lt;/P&gt;&lt;P&gt;GET&amp;nbsp;&lt;SPAN&gt;api.hubapi.com/crm/v4/objects/companies/xxxxx/associations/emails&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and here we can find the missing associations. So there is no scoping or user settings restricting the associations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there somekind of undocumented features of how the associations works in the objects endpoints that we are using? For instance there is no documentation on the pagination for these associations, so is there something else we should be aware of that might explain the missing associations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NM Foss&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 14:05:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/924929#M71166</guid>
      <dc:creator>nmfoss</dc:creator>
      <dc:date>2024-02-19T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Pagination of Associations inside a API call</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/925962#M71363</link>
      <description>&lt;P&gt;I use the following format to be able to retrieve all the data for a given object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;function.basic_api.get_page(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;limit&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;properties&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;properties,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;associations&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; associations,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;archived&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;after)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For this purpose I use pagination with the value at &lt;STRONG&gt;''response.paging.next.after''&lt;/STRONG&gt; and add it to the &lt;STRONG&gt;'after'&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;But if there are &lt;EM&gt;associations &lt;/EM&gt;that specifically require pagination, there are new keys for each of the association type. Named as&lt;BR /&gt;&lt;STRONG&gt;'associations.contacts.paging.next.after'&lt;/STRONG&gt; or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'associations.companies.paging.next.after'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;How should I query them to get all the associations for the given record?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Feb 2024 21:45:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/925962#M71363</guid>
      <dc:creator>GKurtulmus</dc:creator>
      <dc:date>2024-02-20T21:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/928222#M71360</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/698588"&gt;@nmfoss&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for asking the Community!&lt;BR /&gt;&lt;BR /&gt;I believe there may be a limit in the number of rows you can get. Which API documentation did you use, please? Is there any limit mentioned on it?&lt;BR /&gt;&lt;BR /&gt;Have you tried breaking up your call in several requests to get all associations, please?&lt;BR /&gt;&lt;BR /&gt;I also wanted to invite a couple of subject matter experts and some Community Members to this conversation: 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/91608"&gt;@alyssamwilie&lt;/a&gt;&lt;/SPAN&gt;, &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/55480"&gt;@jonchim&lt;/a&gt;&lt;/SPAN&gt;, &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/408593"&gt;@PCronin9&lt;/a&gt;&lt;/SPAN&gt;, &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/206717"&gt;@HBrandao&lt;/a&gt;&lt;/SPAN&gt; and &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/133"&gt;@stefen&lt;/a&gt;&lt;/SPAN&gt; do you have suggestions to help &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/698588"&gt;@nmfoss&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;If anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot and have a wonderful day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:13:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/928222#M71360</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-02-23T13:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/928234#M71361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/698588"&gt;@nmfoss&lt;/a&gt;,&amp;nbsp;I agree with you, this is a great question, and &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/What-is-the-right-way-to-get-all-objects-with-all-associations/td-p/900275" target="_blank" rel="noopener"&gt;I have it too&lt;/A&gt;!&amp;nbsp;.If you have an object with more than 100 associations, there _used_ to be an endpoint in the v3 Associations API that would facilitate you paginating the remainder of the associations, but it appears that endpoint has been removed from the documentation and crippled (but not removed!) in functionality (see details in my linked post).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For our organization, we don't have an object with over 100 associations yet, so I haven't had to cross this bridge yet. But, if I had to solve it today, I would use the V4 Associations API (either the Batch - Read or Basic - List endpoints) to get all the associations I need. Do note however that the pagination information from the V3 CRM API is not compatible with the V4 Associations API, so if you do this, I'd throw out the ones you got on the "first page" of results from the V3 CRM API (or simply not request them at all), and use the V4 Associations API to get them all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For what it's worth, I find this behavior of the HubSpot APIs quite alarming, and I find the lack of participation, comment, and interest in bug reports from anyone employed by HubSpot to be simiarly alarming. In my experience working with the HubSpot APIs that I do, the developer experience has been quite weak, and I have not found anyone at HubSpot yet who seems to share my concerns with what appear to be genuine bugs in their APIs.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:35:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/928234#M71361</guid>
      <dc:creator>PCronin9</dc:creator>
      <dc:date>2024-02-23T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/935454#M71532</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/408593"&gt;@PCronin9&lt;/a&gt;&lt;/SPAN&gt; and &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/698588"&gt;@nmfoss&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your valuable feedback. This means a lot to us.&lt;BR /&gt;I have shared it internally for more visibility.&lt;BR /&gt;&lt;BR /&gt;I'm sorry to hear about your experience regarding this.&lt;BR /&gt;&lt;BR /&gt;I would like to apologize for the frustration, data issues, and business impact this has caused.&lt;BR /&gt;&lt;BR /&gt;Thank you &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/408593"&gt;@PCronin9&lt;/a&gt;&lt;/SPAN&gt; also for sharing this workaround that can help in the meanwhile.&lt;BR /&gt;&lt;BR /&gt;I have checked internally for you and I could see that &lt;STRONG&gt;HubSpot will soon be releasing a V4 of the CRM Object API&lt;/STRONG&gt; that will help for this.&lt;BR /&gt;I don't have an exact timeline to share for this at the moment but the Team is actively working on it as we speak.&lt;BR /&gt;&lt;BR /&gt;Thank you for your patience.&lt;BR /&gt;&lt;BR /&gt;Have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:56:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/935454#M71532</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-02-29T16:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1068914#M78186</link>
      <description>&lt;P&gt;Hi there, we are facing this issue to. Any update on the v4 API? "Soon" was 8 months ago! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 13:55:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1068914#M78186</guid>
      <dc:creator>EMårtensson</dc:creator>
      <dc:date>2024-11-13T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1069116#M78201</link>
      <description>&lt;P&gt;Is there a reason the &lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/associations/association-details" target="_blank" rel="noopener"&gt;associations API&lt;/A&gt;&amp;nbsp;is not a sufficient solution for your use case?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 19:15:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1069116#M78201</guid>
      <dc:creator>PCronin9</dc:creator>
      <dc:date>2024-11-13T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using GET /crm/v3/objects/&lt;object&gt; endpoints for extracting associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1069169#M78207</link>
      <description>&lt;P&gt;Hi PCronin:&lt;BR /&gt;&lt;BR /&gt;By now Ive spent enough time on this issue to work around it. Whenever we encounter a company with a next pagination, I refetch all associations from scratch using the Associations v4. Just cumbersome and tough to explain to others looking at the repo why it has to be that way. But yes, its possible to work around and its not that much more labor intensive than having a working pagination (as we only miss the first page when starting anew).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the amount of time spent debugging that "later" value (assuming it worked and realizing after some hours that it didnt) was a painful experience. Having undocumented behavior like this in the API is a pain when developing. So I raise any issues I see to validate the price tag for Enterprise that we're happily paying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 21:13:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-GET-crm-v3-objects-lt-object-gt-endpoints-for-extracting/m-p/1069169#M78207</guid>
      <dc:creator>EMårtensson</dc:creator>
      <dc:date>2024-11-13T21:13:01Z</dc:date>
    </item>
  </channel>
</rss>

