<?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: Power Automate email formatting with empty questions/answers in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1073883#M35623</link>
    <description>&lt;P&gt;perfect! thank you, Ismael&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 20:21:45 GMT</pubDate>
    <dc:creator>AndrewPriest</dc:creator>
    <dc:date>2021-06-29T20:21:45Z</dc:date>
    <item>
      <title>Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1071252#M35428</link>
      <description>&lt;P&gt;hi. an email is triggered by a Survey123 submission. the survey has many questions that will not have answers, but I'm using dynamic expressions in the email to list all of the questions/answers in the survey. rather than listing a blank space for the unanswered questions is there a workflow to populate "NA" or "Empty"? can the payload be configured to update the dynamic content in Power Automate accordingly? Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Project Number: PRJ-000119&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Activity in a Building: No&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Building Floor(s): &lt;FONT color="#FF0000"&gt;is "NA" or something rather than blank a dynamic option for these non-answers?&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1071252#M35428</guid>
      <dc:creator>AndrewPriest</dc:creator>
      <dc:date>2021-06-22T22:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1072871#M35571</link>
      <description>&lt;P&gt;I think the &lt;A href="https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-isblank-isempty" target="_blank" rel="noopener"&gt;coalesce()&lt;/A&gt; function in Power Automate will do the trick for you.&amp;nbsp; This function can take a value from dynamic content and a fixed string (such as "NA"). If your value from dynamic content is empty, it will return your fixed string.&lt;/P&gt;&lt;P&gt;For example if my Survey123 question called dept is empty, I will get back NA: &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;coalesce(triggerOutputs()?[&lt;/SPAN&gt;&lt;SPAN&gt;'body/feature/attributes/dept'&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;SPAN&gt;'NA'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Coalesce.gif" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17069i63BC78692BFD37E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Coalesce.gif" alt="Coalesce.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 00:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1072871#M35571</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2021-06-26T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1073883#M35623</link>
      <description>&lt;P&gt;perfect! thank you, Ismael&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 20:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1073883#M35623</guid>
      <dc:creator>AndrewPriest</dc:creator>
      <dc:date>2021-06-29T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1157420#M41584</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;Thanks for this! What if I have a date field that I need to test if it's null then return some text or if not null then return the date but format it appropriately?&amp;nbsp; I have been using this successfully to format the date:&lt;/P&gt;&lt;P&gt;convertTimeZone(addSeconds('1970-01-01',div(triggerBody()?['feature']?['attributes']?['InspDate'],1000)),'UTC','Pacific Standard Time','D')&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 17:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1157420#M41584</guid>
      <dc:creator>JeffLegato1</dc:creator>
      <dc:date>2022-03-24T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1157448#M41588</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp; Never mind I got it working!&amp;nbsp; I ended up using an if statement.&lt;/P&gt;&lt;LI-CODE lang="css"&gt;if(equals(triggerOutputs()?['body/feature/attributes/InspDate'],null), 'No inspection date recorded', convertTimeZone(addSeconds('1970-01-01',div(triggerOutputs()?['body/feature/attributes/InspDate'],1000)),'UTC','Pacific Standard Time','D'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 18:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1157448#M41588</guid>
      <dc:creator>JeffLegato1</dc:creator>
      <dc:date>2022-03-24T18:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1226515#M45674</link>
      <description>&lt;P&gt;Thank you for sharing your expression. Just what I needed!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 08:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1226515#M45674</guid>
      <dc:creator>Sietse_de_Haan</dc:creator>
      <dc:date>2022-10-28T08:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate email formatting with empty questions/answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1259558#M47540</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/185862"&gt;@JeffLegato1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am passing dates for a column that is in a repeat table. The field sometimes needs to be passed as null and sometimes will be filled with a date. Among my searches, your statement helped a lot. Thanks anyway. Here it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;if(equals(items('Apply_to_each')?['attributes/Date_Completion'],null), null, convertTimeZone(addseconds('1970-1-1', Div(items('Apply_to_each')?['attributes/Date_Completion'],1000)),'UTC','Afghanistan Standard Time','d'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 21:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-formatting-with-empty/m-p/1259558#M47540</guid>
      <dc:creator>SayedWali</dc:creator>
      <dc:date>2023-02-17T21:02:00Z</dc:date>
    </item>
  </channel>
</rss>

