<?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 Attachments in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199527#M44112</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I assume your attachments can be files and photos?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That is correct, they can be files or photos.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It seems like the flow just treats them all as attachments so you should only need one variable?&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there another/better way to set this up, or a way to not treat them as attachments? As I said, I just followed the guide. My understanding is that two variables would be required, one for photos and one for files. If I could have just one variable and store all the files/photos though, that would be great! That would solve the issue I'm having currently I think.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Otherwise you could merge the two arrays into one, but as I mentioned, but seems like you would just be recombining them.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried merging them at one point, but I was unable to get it to work. I would like to learn how to do this though!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 17:53:39 GMT</pubDate>
    <dc:creator>Hammers211</dc:creator>
    <dc:date>2022-08-04T17:53:39Z</dc:date>
    <item>
      <title>Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1198169#M44038</link>
      <description>&lt;P&gt;I need some help with a Power Automate flow that attaches files to from survey responses to an email. I followed this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-working-with/bc-p/1197954#M5198" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-working-with/bc-p/1197954#M5198&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And have come up with this flow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hammers21_0-1659377778710.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47468i727466D58B340A41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Hammers21_0-1659377778710.png" alt="Hammers21_0-1659377778710.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hammers21_0-1659377778710.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when saving I get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hammers21_0-1659378272872.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47474i1FDC6F06AA42356E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Hammers21_0-1659378272872.png" alt="Hammers21_0-1659378272872.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hammers21_0-1659378272872.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;If I remove either of the attachments (so there is just one, either just "Photo" or just "File"), it saves and the flow operates properly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hammers21_2-1659378122763.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47472iB82635623C283F12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hammers21_2-1659378122763.png" alt="Hammers21_2-1659378122763.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hammers21_2-1659378122763.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hammers21_3-1659378160483.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47473i7B9F020CE76FEB08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hammers21_3-1659378160483.png" alt="Hammers21_3-1659378160483.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hammers21_3-1659378160483.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do both attachments?&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 18:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1198169#M44038</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-08-01T18:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1198209#M44042</link>
      <description>&lt;P&gt;I assume your attachments can be files and photos?&amp;nbsp; It seems like the flow just treats them all as attachments so you should only need one variable?&amp;nbsp; Otherwise you could merge the two arrays into one, but as I mentioned, but seems like you would just be recombining them.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1198209#M44042</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2022-08-01T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199527#M44112</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I assume your attachments can be files and photos?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That is correct, they can be files or photos.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It seems like the flow just treats them all as attachments so you should only need one variable?&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there another/better way to set this up, or a way to not treat them as attachments? As I said, I just followed the guide. My understanding is that two variables would be required, one for photos and one for files. If I could have just one variable and store all the files/photos though, that would be great! That would solve the issue I'm having currently I think.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Otherwise you could merge the two arrays into one, but as I mentioned, but seems like you would just be recombining them.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried merging them at one point, but I was unable to get it to work. I would like to learn how to do this though!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 17:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199527#M44112</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-08-04T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199535#M44114</link>
      <description>&lt;P&gt;My point is it appends attachments to the email.&amp;nbsp; I don't think the variable cares what the attachment extension is (pdf, jpg, doc).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my flow if the operators attached a pdf and took a photo, I would assume they would both be attached in the email.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199535#M44114</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2022-08-04T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199541#M44117</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;My point is it appends attachments to the email.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Please forgive my ignorance, I'm just learning how to use Survey123. What other options are there aside from appending the attachments to the email? Am I not using a suitable method?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I don't think the variable cares what the attachment extension is (pdf, jpg, doc).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Meaning that I could use just one variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help by the way!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199541#M44117</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-08-04T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199542#M44118</link>
      <description>&lt;P&gt;Yea, not could, should.&amp;nbsp; One array variable.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199542#M44118</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2022-08-04T18:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199548#M44119</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/371835"&gt;@TL2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Yea, not could, should.&amp;nbsp; One array variable.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I did try this at one point, but the JSON was the issue I couldn't figure out. I currently have this:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ContentBytes": @{body('HTTP')['$content']},&lt;BR /&gt;"Name": @{items('Apply_to_each')?['name']}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;How do I add my second variable to this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199548#M44119</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-08-04T18:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199555#M44121</link>
      <description>&lt;P&gt;That looks correct.&amp;nbsp; The array variable will gather as many attachments are included in the survey and append them.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199555#M44121</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2022-08-04T18:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Email Attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199558#M44122</link>
      <description>&lt;P&gt;Also add a condition to check if attachments exist (here I am calling them photos).&amp;nbsp; If there are no attachments the flow will fail without an condition to send an email without attachments.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TL2_1-1659638642391.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47817i21492D213ADB1EF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TL2_1-1659638642391.png" alt="TL2_1-1659638642391.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TL2_1-1659638642391.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-email-attachments/m-p/1199558#M44122</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2022-08-04T18:44:51Z</dc:date>
    </item>
  </channel>
</rss>

