<?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: Inbox Filter by Date in Query Expression in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853266#M24117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit_date &amp;gt;= CURRENT_DATE&lt;/EM&gt; should be used (remember, the time component of a date-time will cause equalities to fail)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 20:20:30 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2020-02-18T20:20:30Z</dc:date>
    <item>
      <title>Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853259#M24110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible for the inbox to show submitted forms only from the last 5 days? Perhaps through the inbox filter query expression which looks at a date field (example below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/395198_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My organization has over 3000 entries in&amp;nbsp;survey123, and whenever a user refreshes their inbox, it takes an extremely long time to load.&amp;nbsp; They only need to edit&amp;nbsp;the most recent submissions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853259#M24110</guid>
      <dc:creator>MarioFederis1</dc:creator>
      <dc:date>2018-01-29T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853260#M24111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of query should be possible, though it currently takes a little debugging to get the syntax correct. &amp;nbsp;In the query&amp;nbsp;expression language, there are the keywords CURRENT_TIMESTAMP and CURRENT_DATE (&lt;A class="link-titled" href="http://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm" title="http://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm"&gt;Standardized SQL functions in ArcGIS Online—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;). &amp;nbsp;These are used by ArcGIS Online's filter to create a date-bound query. &amp;nbsp;For the example of the last 5 days, the query is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/395185_Screen Shot 2018-01-29 at 1.36.27 PM.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;PRE&gt;requestDate&amp;nbsp;BETWEEN CURRENT_TIMESTAMP - 5 AND CURRENT_TIMESTAMP&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 21:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853260#M24111</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-01-29T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853261#M24112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James! It worked. I assumed it was possible but just didn't know what the calls were.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853261#M24112</guid>
      <dc:creator>MarioFederis1</dc:creator>
      <dc:date>2018-01-31T12:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853262#M24113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not having any luck with this expression, and I think it may be due to my field type. My field name is 'date' and it is a esriFieldTypeDate. Can I still filter the Inbox for the last 10 days?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, any suggestions on a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I'm in Enterprise 10.6.1 and using Survey123 Connect 3.7.62)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 17:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853262#M24113</guid>
      <dc:creator>AprilChipman</dc:creator>
      <dc:date>2020-02-12T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853263#M24114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a query so that the inbox shows only records from the current day. I have tried querying a date field - event_date=CURRENT_DATE which gives the code 400 invalid parameters. I read in the prepare to edit blog post that said you couldn't use a date field type with this query and it must be formatted yyyy-mm-dd. So I made a hidden type, then set it as a string, and in the calc column formatted the dateTime field above to be yyyy-mm-dd. Then set the query as event_date=CURRENT_DATE again and it doesn't throw the error, but no surveys show up. Not sure if I need to mess with the SQL standard or non-standard queries, or just set a range as one day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2020 20:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853263#M24114</guid>
      <dc:creator>ryanEvanczyk</dc:creator>
      <dc:date>2020-02-16T20:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853264#M24115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi April,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll note that date is normally a reserved keyword - can you confirm the name of the field from the REST API?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit_date between CURRENT_DATE - 10 AND CURRENT_DATE&lt;/EM&gt; as a sample query works for me in ArcGIS Enterprise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853264#M24115</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2020-02-18T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853265#M24116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand, the field name is indeed "date"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482553_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853265#M24116</guid>
      <dc:creator>AprilChipman</dc:creator>
      <dc:date>2020-02-18T20:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853266#M24117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit_date &amp;gt;= CURRENT_DATE&lt;/EM&gt; should be used (remember, the time component of a date-time will cause equalities to fail)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853266#M24117</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2020-02-18T20:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853267#M24118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking through my logs, I was trying to use 'CURRENT_TIMESTAMP' instead of 'CURRENT_DATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date between CURRENT_DATE - 10 AND CURRENT_DATE&lt;/EM&gt;&amp;nbsp; &amp;nbsp; is the query that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853267#M24118</guid>
      <dc:creator>AprilChipman</dc:creator>
      <dc:date>2020-02-18T20:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853268#M24119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used event_date&amp;gt;=CURRENT_DATE and the inbox didn't pull&amp;nbsp;any sent surveys. It is a dateTime type, with a now() default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add a -1 it pulls the current day and the previous day - event_date&amp;gt;=CURRENT_DATE-1 and functions as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding a -0 and that didn't give me an error, but still didn't pull any sent surveys. I also tried getting rid of the default and changing it to a date type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't send that many surveys a day, so it's probably fine. Do I just need to add something else at the end? adjust for UTC time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 05:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853268#M24119</guid>
      <dc:creator>ryanEvanczyk</dc:creator>
      <dc:date>2020-02-20T05:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853269#M24120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DATE_FIELD&amp;gt; &amp;gt;= CURRENT_DATE worked for my test case; you shouldn't need to adjust for UTC. &amp;nbsp;You may want to double-check&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm"&gt;Query (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;and check that the queries work at the REST API - Survey123 is doing this operation and it's a bit easier to debug from the REST (Service URL) web page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 20:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853269#M24120</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2020-02-21T20:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853270#M24121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still wasn't working (valid query when checked in the rest api, but returned no results), I ended up trying the following with success:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;incident_date&amp;gt;CURRENT_DATE-1 AND incident_date&amp;lt;=CURRENT_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RyanE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/853270#M24121</guid>
      <dc:creator>ryanEvanczyk</dc:creator>
      <dc:date>2020-02-25T18:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inbox Filter by Date in Query Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/1011526#M31669</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I followed this thread to come up with a date filter for the field name &lt;EM&gt;CreationDate&lt;/EM&gt; as follows:&lt;/P&gt;&lt;P&gt;CreationDate &amp;lt;= CURRENT_DATE AND CreationDate &amp;gt; CURRENT_DATE – 9&lt;/P&gt;&lt;P&gt;I tried with with numbers 1-10 at the end, to find data collected within this time period (1 to 10 days ago) but I am looking for the Inbox to show dates up to one year ago (365 days). For some strange reason, anytime I enter a number higher than 10, the query fails. I do not get any errors, but my Inbox downloads all records gets maxed out with 1,000 records (which is the main issue, but I cannot figure out how to edit my service definition record limit to be over 1,000 because I cannot figure out how to get a token). Why would any number over 10 cause the query to fail?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 18:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/inbox-filter-by-date-in-query-expression/m-p/1011526#M31669</guid>
      <dc:creator>BreannaOndich</dc:creator>
      <dc:date>2020-12-21T18:25:07Z</dc:date>
    </item>
  </channel>
</rss>

