<?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 Automatic associations between Deals and Contacts in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/862990#M68135</link>
    <description>&lt;P&gt;Hi!&amp;nbsp;&lt;BR /&gt;I've been creating a code to make automatic associations between Deals and Contacts, it works. However, I can only get up to 100 contacts, if I increase the limit the API's response is 400.&amp;nbsp;&lt;BR /&gt;Does anyone know if it is possible to retrieve every Contact?&amp;nbsp;&lt;BR /&gt;We have more&amp;nbsp; than 400 000 contacts and we need to associate deals to them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the help&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 16:48:53 GMT</pubDate>
    <dc:creator>MGranadosAria</dc:creator>
    <dc:date>2023-10-11T16:48:53Z</dc:date>
    <item>
      <title>Automatic associations between Deals and Contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/862990#M68135</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;BR /&gt;I've been creating a code to make automatic associations between Deals and Contacts, it works. However, I can only get up to 100 contacts, if I increase the limit the API's response is 400.&amp;nbsp;&lt;BR /&gt;Does anyone know if it is possible to retrieve every Contact?&amp;nbsp;&lt;BR /&gt;We have more&amp;nbsp; than 400 000 contacts and we need to associate deals to them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:48:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/862990#M68135</guid>
      <dc:creator>MGranadosAria</dc:creator>
      <dc:date>2023-10-11T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic associations between Deals and Contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/863035#M68137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/644677"&gt;@MGranadosAria&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Your issue of encountering a 400 error beyond 100 contacts arises due to HubSpot’s limitation on batch operations. However, you have two viable methods to work around this limitation:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Pagination:&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Implement pagination in your code to process contacts in batches of 100, associating deals page by page until all contacts are handled.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/exports" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Export API:&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Utilize HubSpot's new Export API to export all your contacts at once. Once the export is complete, you'll receive a URL to download the exported file. Download this file and save it locally. In your code, implement file reading functionality using libraries such as &lt;CODE&gt;fs&lt;/CODE&gt; in Node.js to read the exported data from the saved file. Process the read data to associate deals to the contacts as per your existing logic.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Each method caters to the retrieval and processing of over 400,000 contacts, aiding in the automatic association between Deals and Contacts as per your requirement.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:46:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/863035#M68137</guid>
      <dc:creator>MAC-MCB</dc:creator>
      <dc:date>2023-10-11T17:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic associations between Deals and Contacts</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/864176#M68217</link>
      <description>&lt;P&gt;Thanks!! I'll check those solutions&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 14:03:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Automatic-associations-between-Deals-and-Contacts/m-p/864176#M68217</guid>
      <dc:creator>MGranadosAria</dc:creator>
      <dc:date>2023-10-13T14:03:43Z</dc:date>
    </item>
  </channel>
</rss>

