<?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: Getting error while searching/filtering contact object with Lastmodifieddate filed. in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379744#M37313</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;,&lt;BR /&gt;I checked search API with Unix timestamp with the below payload&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "hs_lastmodifieddate",
                    "operator": "LTE",
                    "value": "1603101460"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;It always returns zero results with 200 status code, but we have more than zero records according to the provided filter.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 10:06:01 GMT</pubDate>
    <dc:creator>SakshiChauhan</dc:creator>
    <dc:date>2020-10-19T10:06:01Z</dc:date>
    <item>
      <title>Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/377931#M37142</link>
      <description>&lt;P&gt;I'm using Filter, sort, and search CRM Objects API to filter contacts based on the&amp;nbsp;&lt;SPAN&gt;Lastmodifieddate&amp;nbsp;field and getting an error in response from API ( URL: "&lt;A href="https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=&lt;/A&gt;" )&lt;BR /&gt;&lt;BR /&gt;In the contacts record, there is more than one record which has&amp;nbsp;Lastmodifieddate. Tried with different filters like the first-name and it's working fine with first-name and other filters.&lt;BR /&gt;below is the request body I'm passing,&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="request.JPG" style="width: 633px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/32948iEBC541014E695AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="request.JPG" alt="request.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;and below is the response I'm getting from API&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="response.JPG" style="width: 821px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/32949iBCF247C9503E1A0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="response.JPG" alt="response.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;It should give me records matching with&amp;nbsp;Lastmodifieddate but it's giving me an error.&lt;BR /&gt;The same request is working with filters like first-name,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hs_object_id.&lt;BR /&gt;Please point me to the right path, is there anything that I'm missing? Or filtering with&amp;nbsp;Lastmodifieddate and &lt;SPAN&gt;updatedAt&amp;nbsp;&lt;/SPAN&gt;is not supported?&lt;BR /&gt;&lt;BR /&gt;please refer to below Snapshot which supports me that I've records ( contact records ) that have the Lastmodifieddate field with its value.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prove.JPG" style="width: 867px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/32951iE120CE547EB9114E/image-size/large?v=v2&amp;amp;px=999" role="button" title="prove.JPG" alt="prove.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 07:52:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/377931#M37142</guid>
      <dc:creator>SakshiChauhan</dc:creator>
      <dc:date>2020-10-12T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/378148#M37183</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139911"&gt;@SakshiChauhan&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;2 things that I am seeing&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;When I ran the test, I needed to us &lt;STRONG&gt;hs_lastmodifieddate&lt;/STRONG&gt;.&amp;nbsp; Yours appears to be missing the &lt;STRONG&gt;hs_&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;If you convert the timestamp into its equivalent unix timestamp, I think you should be good to go!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 19:48:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/378148#M37183</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-12T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/378907#M37251</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp; thanks for the update.&lt;BR /&gt;but can you please help me with how can I convert modified_date into Unix &lt;SPAN&gt;timestamp&lt;/SPAN&gt;?&lt;BR /&gt;Below is my modified date of one record that I wanted to search by HubSpot API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"2020-09-11T19:42:24.233Z"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 08:07:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/378907#M37251</guid>
      <dc:creator>SakshiChauhan</dc:creator>
      <dc:date>2020-10-15T08:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379475#M37289</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139911"&gt;@SakshiChauhan&lt;/a&gt; , you will need to build this into your program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://coderwall.com/p/rbfl6g/how-to-get-the-correct-unix-timestamp-from-any-date-in-javascript" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is an article that may help.&lt;/P&gt;
&lt;P&gt;For what it's worth, I have brought this up to the team to consider updating so the methods return a consistent value.&amp;nbsp; Hopefully this will be updated sooner than later!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 17:44:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379475#M37289</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-16T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379707#M37310</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not work. Even if I translate string to UnixTime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use lastmodifieddate and "GTE". I get all records regardless of timestamp.&lt;/P&gt;&lt;P&gt;If I use lastmodifieddate and "LTE" I get no records regardless of timestamp.&lt;/P&gt;&lt;P&gt;If I use hs_lastmodifieddate I get no restords regardless of timestamp, operator....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also value can be as string or as number - it doesn't matter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I need is api call which will return records that were modified after some arbitrary time. With that I can synchronize local contacts with HubSpot. Just periodically execute function which will return all records that were changed after last call. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:25:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379707#M37310</guid>
      <dc:creator>MPrtenjak</dc:creator>
      <dc:date>2020-10-19T08:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379711#M37311</link>
      <description>&lt;P&gt;Ok, I have found a workaround. Sort contacts by modified date read chunks of 100 records (max allowed) until some arbitrary time I am looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "sorts" : [
      {
        "propertyName": "lastmodifieddate",
        "direction": "DESCENDING"
      }        
    ],
    "limit": 100,
    "after": 400
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:39:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379711#M37311</guid>
      <dc:creator>MPrtenjak</dc:creator>
      <dc:date>2020-10-19T08:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379744#M37313</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;,&lt;BR /&gt;I checked search API with Unix timestamp with the below payload&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "hs_lastmodifieddate",
                    "operator": "LTE",
                    "value": "1603101460"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;It always returns zero results with 200 status code, but we have more than zero records according to the provided filter.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 10:06:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379744#M37313</guid>
      <dc:creator>SakshiChauhan</dc:creator>
      <dc:date>2020-10-19T10:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379900#M37334</link>
      <description />
      <pubDate>Mon, 19 Oct 2020 14:01:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379900#M37334</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2020-10-19T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379903#M37338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148602"&gt;@MPrtenjak&lt;/a&gt; , could you add the body of your request here?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 16:05:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379903#M37338</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-19T16:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379925#M37344</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139911"&gt;@SakshiChauhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the post method and this endpoint: &lt;A href="https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=xxxx" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=xxxx&lt;/A&gt; and using this body (which includes the unix time stamp that you provided):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "filterGroups":[
  {
      "filters": [
        {
          "propertyName": "hs_lastmodifieddate",
          "operator": "GTE",
          "value": "1603101460"
        }
      ] 
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;I received 8 entries in my returned body.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully, this updated code will help you out!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 16:58:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379925#M37344</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-19T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379935#M37345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calling REST function:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxx&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;With body:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "filters": [
    {
      "propertyName": "lastmodifieddate",
      "operator": "GTE",
      "value": 1601544240
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;Now you can change value to anything and you will always records. I can set value to 0 or&amp;nbsp;1601544240 or&amp;nbsp;2601544240 - it doesn't matter. I will always get all records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change GTE to LTE I won't get any records.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:52:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379935#M37345</guid>
      <dc:creator>MPrtenjak</dc:creator>
      <dc:date>2020-10-19T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379936#M37346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calling REST function:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxx&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;With body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "filters": [
    {
      "propertyName": "lastmodifieddate",
      "operator": "GTE",
      "value": 1601544240
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can change value to anything and you will always records. I can set value to 0 or&amp;nbsp;1601544240 or&amp;nbsp;2601544240 - it doesn't matter. I will always get all records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change GTE to LTE I won't get any records.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:53:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/379936#M37346</guid>
      <dc:creator>MPrtenjak</dc:creator>
      <dc:date>2020-10-19T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380000#M37360</link>
      <description>&lt;P&gt;I am seeing something similar - it appears LTE date math doesn't work properly on datetime fields using the unix timestamp as shown above. 0 records are always returned for me as well. GT/GTE seem to work.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 02:14:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380000#M37360</guid>
      <dc:creator>jtruty</dc:creator>
      <dc:date>2020-10-20T02:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380024#M37363</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148699"&gt;@jtruty&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;GT/GTE seem to work.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not for me. By using GT/GTE I am getting the same records regardless of 'value'&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 05:01:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380024#M37363</guid>
      <dc:creator>MPrtenjak</dc:creator>
      <dc:date>2020-10-20T05:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380080#M37371</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;,&lt;BR /&gt;1. I checked your created request on postman and getting the same 8 records for companies object but according to me, it is not correct.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the case of GTE, API returning more than zero records. (expected: should return zero records if I am using the current date.)&lt;/LI&gt;&lt;LI&gt;In the case of LTE, API returning zero records. (expected: should return more than zero records if I am using the current date.)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SakshiChauhan_0-1603185550584.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/33259i10BC958F0722AA6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SakshiChauhan_0-1603185550584.png" alt="SakshiChauhan_0-1603185550584.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&amp;nbsp;In case of Contact &lt;EM&gt;hs_lastmodifieddate&lt;/EM&gt; not working. Search API is returning zero records or if I use &lt;EM&gt;lastmodifieddate without hs_&lt;/EM&gt; in Contacts object then it gives me data.&lt;BR /&gt;&lt;BR /&gt;So please suggest&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 09:23:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380080#M37371</guid>
      <dc:creator>SakshiChauhan</dc:creator>
      <dc:date>2020-10-20T09:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380203#M37387</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139911"&gt;@SakshiChauhan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;I can confirm I see the same issue - it appears that the GT/GTE/LT/LTE don't work properly using Unix dates as shown in the example. Should we be using a different format?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:15:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380203#M37387</guid>
      <dc:creator>jtruty</dc:creator>
      <dc:date>2020-10-20T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380629#M37425</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139911"&gt;@SakshiChauhan&lt;/a&gt; , I think I see the problem.&amp;nbsp; Looks like we are submitting in seconds and the endpoint is expecting milliseconds&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 14:28:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380629#M37425</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-21T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380733#M37432</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working with the HubSpot API as well and these are my findings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To convert a date to an epoch unix timestamp you can use this simple JavaScript code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var originalDate = '2020-10-13T15:47:31.233Z'; //original date obtained from any record
var epochDate = Date.parse(originalDate);
var newDate = new Date(epochDate);
console.log(epochDate);
console.log(newDate.toUTCString());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the value of the epochDate variable to retrieve the records you want from HubSpot API, the format of the epoch timestamp should be something like this &lt;STRONG&gt;1602604051233&lt;/STRONG&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;newDate variable is just to verify that the original date does not get affected after the conversion.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have been using the Search API method for Contacts by calling the following URL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxx&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And using this body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "sorts": [
      {
        "propertyName": "lastmodifieddate",
        "direction": "ASCENDING"
      }
    ],
    "filterGroups":[
      {
        "filters": [
          {
            "propertyName": "lastmodifieddate",
             "operator": "GTE",
             "value": "1602604051233"
          }
        ] 
      }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown above, GTE is being used as the operator for that request, but I also tested with LT,LTE, and GT and these operators work fine as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps, best regards!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 19:28:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/380733#M37432</guid>
      <dc:creator>asaeljb</dc:creator>
      <dc:date>2020-10-21T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/381076#M37468</link>
      <description>&lt;P&gt;Well done &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148894"&gt;@asaeljb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for adding your solution here!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 15:44:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/381076#M37468</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-22T15:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error while searching/filtering contact object with Lastmodifieddate filed.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/381373#M37506</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148894"&gt;@asaeljb&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;, for providing the solution. I am marking this post as resolved.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 14:12:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-error-while-searching-filtering-contact-object-with/m-p/381373#M37506</guid>
      <dc:creator>SakshiChauhan</dc:creator>
      <dc:date>2020-10-23T14:12:07Z</dc:date>
    </item>
  </channel>
</rss>

