<?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: How to retrieve all associations having thousands of contacts, and companies, and deals? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675774#M55538</link>
    <description>&lt;P&gt;I have managed to find a solution.&lt;/P&gt;&lt;P&gt;There is a parameter in getting deals that I didn't see, "associations".&lt;/P&gt;&lt;P&gt;Adding it has solved, as I have all the needed associations inside the deal:&lt;/P&gt;&lt;H5&gt;&amp;nbsp;&lt;/H5&gt;&lt;H5&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{baseUri}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/crm/v4/objects/deal?limit=100&amp;amp;associations=company,contact&amp;amp;archived=false&amp;amp;properties=amount,dealstage,createdate,closedate,dealname,hubspot_owner_id,hs_object_id,hs_deal_stage_probability,num_notes&lt;/SPAN&gt;&lt;/H5&gt;&lt;P&gt;&lt;SPAN&gt;inside th deal there is a subsection "associations" that contains all the searched deals&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 16:31:41 GMT</pubDate>
    <dc:creator>AMoscato</dc:creator>
    <dc:date>2022-08-04T16:31:41Z</dc:date>
    <item>
      <title>How to retrieve all associations having thousands of contacts, and companies, and deals?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675051#M55479</link>
      <description>&lt;P&gt;I have around 15k contacts, some thousands companies, and 1k deals.&lt;/P&gt;&lt;P&gt;As I want to analyze how they change during time, say to know how many deals changed state inside the pipeline every month, I need to get all deals and all their associations with companies.&lt;/P&gt;&lt;P&gt;I am able to get all deals with&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/deals/" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/deals/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and I can get all companies and contacts too.&lt;/P&gt;&lt;P&gt;I haven't found a way to get all associations. There is&lt;/P&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;This solution has some drawbacks: I need to pass an array of ids (how may max?), Associations api is already at version 4, I don't know how much time version 3 is going to be available, and I would like to implement a durable solutions.&lt;/DIV&gt;&lt;DIV class=""&gt;Any hints on this?&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Aug 2022 17:31:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675051#M55479</guid>
      <dc:creator>AMoscato</dc:creator>
      <dc:date>2022-08-03T17:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve all associations having thousands of contacts, and companies, and deals?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675746#M55534</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; , have you hit a limit, yet?&amp;nbsp; Any thoughts here?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 15:51:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675746#M55534</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-08-04T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve all associations having thousands of contacts, and companies, and deals?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675774#M55538</link>
      <description>&lt;P&gt;I have managed to find a solution.&lt;/P&gt;&lt;P&gt;There is a parameter in getting deals that I didn't see, "associations".&lt;/P&gt;&lt;P&gt;Adding it has solved, as I have all the needed associations inside the deal:&lt;/P&gt;&lt;H5&gt;&amp;nbsp;&lt;/H5&gt;&lt;H5&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{baseUri}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/crm/v4/objects/deal?limit=100&amp;amp;associations=company,contact&amp;amp;archived=false&amp;amp;properties=amount,dealstage,createdate,closedate,dealname,hubspot_owner_id,hs_object_id,hs_deal_stage_probability,num_notes&lt;/SPAN&gt;&lt;/H5&gt;&lt;P&gt;&lt;SPAN&gt;inside th deal there is a subsection "associations" that contains all the searched deals&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 16:31:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-retrieve-all-associations-having-thousands-of-contacts/m-p/675774#M55538</guid>
      <dc:creator>AMoscato</dc:creator>
      <dc:date>2022-08-04T16:31:41Z</dc:date>
    </item>
  </channel>
</rss>

