<?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: Best way to retrieve deals after a certain date including property history and associated com... in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-retrieve-deals-after-a-certain-date-including/m-p/908551#M70431</link>
    <description>&lt;P&gt;Hey, &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/694689"&gt;@BBaliuc&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. You've touched on the limitation of our endpoints. As you noted, you will have to make multiple calls to achieve your goal, as there is not a unified endpoint that can accomplish this in a single call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'll leave this open in case other community members would like to share how they accomplish similar goals while dealing with having to make multiple calls.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 17:20:04 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-01-19T17:20:04Z</dc:date>
    <item>
      <title>Best way to retrieve deals after a certain date including property history and associated companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-retrieve-deals-after-a-certain-date-including/m-p/907700#M70399</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're looking to use the API to retrieve all deals that have been modified in the past 2 years and store them in a database for analysis. We need to get property history for some properties and also properties from an associated company. The main issue we are running into that the search function does not return properties with history, nor associations and that the LIST endpoint doesn't allow any filtering whatsoever forcing us to go through every single deal in the system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way I see it, we have two options:&lt;/P&gt;&lt;P&gt;Option 1:&lt;/P&gt;&lt;P&gt;- Use the List Deal endpoint to get all the deals in the system and filter out the deals that have not been updated since the cutoff date; this will return 50 results at a time since we are asking for history on properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;- For each set of results extract the companies that have the proper association and then use the Batch Read company endpoint to get the company properties we want&lt;/P&gt;&lt;P&gt;Option 2:&lt;/P&gt;&lt;P&gt;- Use the Search Deals endpoint to get only the deals that have been modified after the cutoff date; this will return most properties, but not the property history and no associations&lt;/P&gt;&lt;P&gt;- Use the Batch Read Deals endpoint to get property history (looks like cannot get associations with batch read); potentially mutiple calls per result set from search as search can return up to 999 records at a time&lt;/P&gt;&lt;P&gt;- Use Batch Read association endpoint to get associated companies&lt;/P&gt;&lt;P&gt;- Finally use the Batch Read company endpoint to get the company properties for the companies we want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It feels like there should be a better way to do this that I'm missing. Does anybody have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:42:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-retrieve-deals-after-a-certain-date-including/m-p/907700#M70399</guid>
      <dc:creator>BBaliuc</dc:creator>
      <dc:date>2024-01-18T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to retrieve deals after a certain date including property history and associated com...</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-retrieve-deals-after-a-certain-date-including/m-p/908551#M70431</link>
      <description>&lt;P&gt;Hey, &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/694689"&gt;@BBaliuc&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. You've touched on the limitation of our endpoints. As you noted, you will have to make multiple calls to achieve your goal, as there is not a unified endpoint that can accomplish this in a single call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'll leave this open in case other community members would like to share how they accomplish similar goals while dealing with having to make multiple calls.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:20:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-retrieve-deals-after-a-certain-date-including/m-p/908551#M70431</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-01-19T17:20:04Z</dc:date>
    </item>
  </channel>
</rss>

