<?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 Survey123 &amp;gt;Automate &amp;gt; Excel - Date/time formatting issue in ArcGIS Connectors for Power Automate Questions</title>
    <link>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294730#M226</link>
    <description>&lt;P&gt;Hi Automaters,&lt;/P&gt;&lt;P&gt;New to using Microsoft Automate. Hoping this is a quick fix for someone.&lt;/P&gt;&lt;P&gt;I have set up a flow so when someone submits a survey123 that info gets written into a spreadsheet in Sharepoint. It's working great! Except for the date/time format in two fields...&lt;/P&gt;&lt;P&gt;The two fields are date fields in S123/AGOL, so I'm inputting them as dynamic content, and I want them to be in UTC + 12.&lt;/P&gt;&lt;P&gt;I was advised this could work- putting in an expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;formatDateTime(addHours(utc&lt;FONT color="#FF99CC"&gt;Now&lt;/FONT&gt;(triggerOutputs()?['body/feature/attributes/Contact_date']),12),'dd/MM/yyyy&amp;nbsp;HH:mm')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The flow is failing though, and this is the error I'm getting.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Unable to process template language expressions in action 'Add_a_row_into_a_table_-_Consult_on_effects_Contractor' inputs at line '0' and column '0': 'The template language function 'utcNow' expects its parameter to be of type string. The provided value is of type 'Integer'. Please see&amp;nbsp;&lt;A href="https://aka.ms/logicexpressions#utcnow" target="_blank" rel="noopener nofollow noreferrer"&gt;https://aka.ms/logicexpressions#utcnow&lt;/A&gt;&amp;nbsp;for usage details.'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I posted in the Microsoft Automate Community forums on their website, but haven't gotten to the root of the problem yet. I thought maybe someone in this community has experienced it before since you're also AGOL users.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 20:28:02 GMT</pubDate>
    <dc:creator>elpinguino</dc:creator>
    <dc:date>2023-05-31T20:28:02Z</dc:date>
    <item>
      <title>Survey123 &gt;Automate &gt; Excel - Date/time formatting issue</title>
      <link>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294730#M226</link>
      <description>&lt;P&gt;Hi Automaters,&lt;/P&gt;&lt;P&gt;New to using Microsoft Automate. Hoping this is a quick fix for someone.&lt;/P&gt;&lt;P&gt;I have set up a flow so when someone submits a survey123 that info gets written into a spreadsheet in Sharepoint. It's working great! Except for the date/time format in two fields...&lt;/P&gt;&lt;P&gt;The two fields are date fields in S123/AGOL, so I'm inputting them as dynamic content, and I want them to be in UTC + 12.&lt;/P&gt;&lt;P&gt;I was advised this could work- putting in an expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;formatDateTime(addHours(utc&lt;FONT color="#FF99CC"&gt;Now&lt;/FONT&gt;(triggerOutputs()?['body/feature/attributes/Contact_date']),12),'dd/MM/yyyy&amp;nbsp;HH:mm')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The flow is failing though, and this is the error I'm getting.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Unable to process template language expressions in action 'Add_a_row_into_a_table_-_Consult_on_effects_Contractor' inputs at line '0' and column '0': 'The template language function 'utcNow' expects its parameter to be of type string. The provided value is of type 'Integer'. Please see&amp;nbsp;&lt;A href="https://aka.ms/logicexpressions#utcnow" target="_blank" rel="noopener nofollow noreferrer"&gt;https://aka.ms/logicexpressions#utcnow&lt;/A&gt;&amp;nbsp;for usage details.'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I posted in the Microsoft Automate Community forums on their website, but haven't gotten to the root of the problem yet. I thought maybe someone in this community has experienced it before since you're also AGOL users.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294730#M226</guid>
      <dc:creator>elpinguino</dc:creator>
      <dc:date>2023-05-31T20:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 &gt;Automate &gt; Excel - Date/time formatting issue</title>
      <link>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294760#M228</link>
      <description>&lt;P&gt;Survey123 appears to be passing UNIX timestamps to your DynamicContent. Try instantiating a variable that converts your UNIX integer to a string and then format that in your Timezone offset expression.&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerusers.microsoft.com/t5/Building-Flows/Got-a-recipe-for-converting-a-unix-timestamp-to-a-utc-date/td-p/137246" target="_blank"&gt;https://powerusers.microsoft.com/t5/Building-Flows/Got-a-recipe-for-converting-a-unix-timestamp-to-a-utc-date/td-p/137246&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294760#M228</guid>
      <dc:creator>CoffeeforClosers</dc:creator>
      <dc:date>2023-05-31T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 &gt;Automate &gt; Excel - Date/time formatting issue</title>
      <link>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294842#M230</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425367"&gt;@CoffeeforClosers&lt;/a&gt;&amp;nbsp;. That was doing my head in! Fixed now!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 00:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-connectors-for-power-automate-questions/survey123-gt-automate-gt-excel-date-time/m-p/1294842#M230</guid>
      <dc:creator>elpinguino</dc:creator>
      <dc:date>2023-06-01T00:03:40Z</dc:date>
    </item>
  </channel>
</rss>

