<?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: Retrieve Deals by create date V3 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/742476#M60364</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98176"&gt;@PowerMyAnalytic&lt;/a&gt;&amp;nbsp;, Sorry for ressurecting the old question but I have the same problem. And as I can see search endpoint doesn't suit me well since it can return only 10000 records max and have more strict rate limits.&lt;BR /&gt;&lt;BR /&gt;What if I want to get ALL records starting from Jan 1, 2021 even if there are 20000 records?&amp;nbsp;&lt;BR /&gt;The option I use know is to list all the records and later filter the results but it's not optimal neither for our customers since waiting time becomes longer nor for your servers, I believe&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 12:37:20 GMT</pubDate>
    <dc:creator>MYermolayev</dc:creator>
    <dc:date>2023-01-17T12:37:20Z</dc:date>
    <item>
      <title>Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338013#M32964</link>
      <description>&lt;P&gt;Use Case: Retrieve al deals that created at January 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found 2 ways to retrieve deals:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Get &lt;STRONG&gt;all&lt;/STRONG&gt; &lt;STRONG&gt;deals&lt;/STRONG&gt; with&amp;nbsp;/crm/v3/objects/deals&lt;/P&gt;&lt;P&gt;2. Use search&amp;nbsp;/crm/v3/objects/deals/search with sorting by createdate to get &lt;STRONG&gt;last 10,000 deals&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both are not good enough. Request all every time that I want to update my data is wasteful and blast the API, and the last 10,000 may not include the requested date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option to retrieve deals by date range?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the solution could be under the &lt;STRONG&gt;Search&lt;/STRONG&gt; method.&lt;/P&gt;&lt;P&gt;If you will &lt;STRONG&gt;support createdate as a searchable property&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the search method will be extremely powerful.&lt;/P&gt;&lt;P&gt;Is this on the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 12:45:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338013#M32964</guid>
      <dc:creator>PowerMyAnalytic</dc:creator>
      <dc:date>2020-05-11T12:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338018#M32965</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98176"&gt;@PowerMyAnalytic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can confirm that we do indeed support &lt;CODE&gt;createdate&lt;/CODE&gt; as a property that can be used to refine search queries via our &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_self"&gt;CRM Search API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;See below for an example:&lt;/P&gt;
&lt;PRE&gt;Request URL:
POST https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=YOUR_HUBSPOT_API_KEY

Payload:
{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "createDate",
            "operator": "GTE",
            "value": "INSERT_TIMESTAMP_IN_MILLISECONDS"
          }
        ]
      }
    ]
  }&lt;/PRE&gt;
&lt;P&gt;An example for the timestamp of one of my deals, the UI displays: &lt;CODE&gt;02/19/2020&lt;/CODE&gt;, converting to milliseconds, I get&amp;nbsp;&lt;CODE&gt;1582070400000&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Using this in my request, I get the following response:&lt;/P&gt;
&lt;PRE&gt;{
    "total": 1,
    "results": [
        {
            "id": "1592369832",
            "properties": {
                "amount": null,
                "closedate": "2020-02-29T10:00:02.147Z",
                "createdate": "2020-02-19T10:00:02.147Z",
                "dealname": "API Line Item Deal",
                "dealstage": "c51cd404-82cc-4c1c-9d95-a8a89f125251",
                "hs_lastmodifieddate": "2020-03-18T08:55:09.356Z",
                "hs_object_id": "1592369832",
                "pipeline": "default"
            },
            "createdAt": "2020-02-19T10:00:02.147Z",
            "updatedAt": "2020-03-18T08:55:09.356Z",
            "archived": false
        }
    ]
}&lt;/PRE&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 13:00:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338018#M32965</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-05-11T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338676#M33036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Awsome!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting error.&lt;/P&gt;&lt;P&gt;Maybe this functionality is not yet exposed to the users?&lt;/P&gt;&lt;P&gt;(no option of filter by time in the Docs&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.hubapi.com/crm/v3/objects/deals/search

{
"filterGroups":[
      {
        "filters":[
          {
            "propertyName": "createDate",
            "operator": "GTE",
            "value": 1586476800000
          }
        ]
      }
    ]
}
&lt;BR /&gt;
400 Bad Request error:&lt;BR /&gt;
{
"status": "error",
"message": "There was a problem with the request.",
"correlationId": "c0fa743e-1d52-4978-a4d6-ecd1283c2924"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 11:45:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/338676#M33036</guid>
      <dc:creator>PowerMyAnalytic</dc:creator>
      <dc:date>2020-05-13T11:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/339823#M33207</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;Jumping&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 14:32:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/339823#M33207</guid>
      <dc:creator>PowerMyAnalytic</dc:creator>
      <dc:date>2020-05-18T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/340059#M33226</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98176"&gt;@PowerMyAnalytic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking through your filter, I can see that create date is showing as &lt;CODE&gt;createDate&lt;/CODE&gt;. Could we try with &lt;CODE&gt;createdate&lt;/CODE&gt; as this is case sensitive.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 08:58:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/340059#M33226</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-05-19T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/340133#M33230</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working now. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 12:22:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/340133#M33230</guid>
      <dc:creator>PowerMyAnalytic</dc:creator>
      <dc:date>2020-05-19T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Deals by create date V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/742476#M60364</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98176"&gt;@PowerMyAnalytic&lt;/a&gt;&amp;nbsp;, Sorry for ressurecting the old question but I have the same problem. And as I can see search endpoint doesn't suit me well since it can return only 10000 records max and have more strict rate limits.&lt;BR /&gt;&lt;BR /&gt;What if I want to get ALL records starting from Jan 1, 2021 even if there are 20000 records?&amp;nbsp;&lt;BR /&gt;The option I use know is to list all the records and later filter the results but it's not optimal neither for our customers since waiting time becomes longer nor for your servers, I believe&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:37:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Deals-by-create-date-V3/m-p/742476#M60364</guid>
      <dc:creator>MYermolayev</dc:creator>
      <dc:date>2023-01-17T12:37:20Z</dc:date>
    </item>
  </channel>
</rss>

