<?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: Webhook emailed date issue in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/1126979#M39326</link>
    <description>&lt;P&gt;Worked like a charm. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 22:33:15 GMT</pubDate>
    <dc:creator>ErinAas3</dc:creator>
    <dc:date>2021-12-16T22:33:15Z</dc:date>
    <item>
      <title>Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794125#M8980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a webhook with Microsoft flow to send an email out when the survey is submitted but the date in the email returns as a long string of numbers ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/414532_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have it set up as a date type question in survey123 and it looks like this within the webhook:&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/414536_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong and help on this is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794125#M8980</guid>
      <dc:creator>KassandraRodriguez</dc:creator>
      <dc:date>2018-07-19T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794126#M8981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the date is being exported in EPOCH time. See this &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis"&gt;link&lt;/A&gt; for an explanation of different date/time formats. I'm not sure how dates are handled when they are sent from Survey123 to other web apps but here is what I would try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a calculated field in your survey (it should be hidden by default). In the calculate column try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format-date(${[name of your date field]},'%m/%d/%Y')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should create a new field with the date expressed as a string in the format MM/DD/YYYY. You should be able to reference this in your email webhook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note - you can customize the format however you need. The different options are listed on the link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794126#M8981</guid>
      <dc:creator>ChristopherMatechik</dc:creator>
      <dc:date>2018-07-19T18:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794127#M8982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris so with doing what you recommended you can't immediately see your attribute as an option in the Microsoft Webhook dynamic content list because it's hidden in your survey. So going onto expression I was able to just type it out as:&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #fffffe; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;triggerBody()&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'feature'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'attributes'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'Date'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&amp;nbsp; and returned&amp;nbsp;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/414610_pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/414608_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 21:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794127#M8982</guid>
      <dc:creator>KassandraRodriguez</dc:creator>
      <dc:date>2018-07-19T21:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794128#M8983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. You can use the &lt;EM&gt;addseconds&lt;/EM&gt; function as follows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #fffffe; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;seconds&lt;/SPAN&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'1970-1-1'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;Div(triggerBody()&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'feature'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'attributes'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]?[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'mydate'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;],&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;1000&lt;/SPAN&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'yyyy-MM-dd'&lt;/SPAN&gt;&lt;SPAN style="color: #110188; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;For context, Survey123 date and time objects are expressed in UNIX time. UNIX time is the number of seconds elapsed since Jan 1 1970. With &lt;EM&gt;addseconds&lt;/EM&gt;, you can get back a human friendly date and or time string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This and some other tips on Microsoft Flow available at: &lt;A href="https://community.esri.com/groups/survey123/blog/2018/07/19/automating-workflows-with-survey123-and-microsoft-flow"&gt;https://community.esri.com/groups/survey123/blog/2018/07/19/automating-workflows-with-survey123-and-microsoft-flow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 04:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794128#M8983</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2018-07-24T04:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794129#M8984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;If anyone&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;wants to convert UNIX time into a readable date string using &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Integromat&lt;/STRONG&gt;&lt;/SPAN&gt; - use a similar expression to what's shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;{{formatDate(parseDate(substring(&lt;SPAN style="color: #ff0000;"&gt;1.feature.attributes.dateTimeFieldName&lt;/SPAN&gt;;0;10); "X"); "YYYY-MM-DD hh:mm A")}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 04:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794129#M8984</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-10-03T04:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794130#M8985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we use this in the Source File &amp;gt; Map? To rename the file? or is there another process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/794130#M8985</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-09-09T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/1097302#M37117</link>
      <description>&lt;P&gt;Thank you Anonymous User, you are true hero!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/1097302#M37117</guid>
      <dc:creator>ColtonPhillips</dc:creator>
      <dc:date>2021-09-10T17:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook emailed date issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/1126979#M39326</link>
      <description>&lt;P&gt;Worked like a charm. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 22:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-emailed-date-issue/m-p/1126979#M39326</guid>
      <dc:creator>ErinAas3</dc:creator>
      <dc:date>2021-12-16T22:33:15Z</dc:date>
    </item>
  </channel>
</rss>

