<?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 webhook with links to survey attachments in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-with-links-to-survey-attachments/m-p/1150898#M41077</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to develop a webhook that sends an automated email with links to survey attachments.&amp;nbsp; In particular, the survey is set up to take up to 5 photos, and I'm working with non-premium features of Microsoft Power Automate.&lt;/P&gt;&lt;P&gt;I was able to follow&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/working-with-survey123-attachments-in-integromat/ba-p/1020318" target="_blank" rel="noopener"&gt;Working with Survey123 attachments in Integromat&lt;/A&gt;&amp;nbsp;successfully.&amp;nbsp; Props &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;for a good article!&amp;nbsp; That said, I suspect my organization would prefer sticking with Microsoft to match existing emails, user profiles, security, etc.&amp;nbsp; Unfortunately, I don't have access to premium actions that are required to replicate the same process with Power Automate as detailed in this&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000024579" target="_blank" rel="noopener"&gt;Esri support article&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;My thought was to combine ideas from both articles, namely the URL/token tidbit of the Integromat article: &lt;STRONG&gt;&lt;FONT color="#008000"&gt;&amp;lt;attachment URL&amp;gt;&lt;/FONT&gt;?token=&lt;FONT color="#008000"&gt;&amp;lt;survey token&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp; In Power Automate, I made a flow that takes a S123 response, iterates through photo attachments to add the URL/token to an array, and then emails the array of links.&amp;nbsp; The emailed links work - at least initially - but trying to revisit links the next day (or even an hour later) leads to the "invalid token" error from the ArcGIS REST Services Directory.&lt;/P&gt;&lt;P&gt;My suspicion is that the token is only valid for a certain amount of time, which really cuts into the utility of the webhook if the email recipients don't receive, open, and save the images quickly enough.&amp;nbsp; I feel like I barely have a grasp of what's happening behind the scenes or even all this terminology, but wondering if there's any insight out there?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 22:08:12 GMT</pubDate>
    <dc:creator>cwu</dc:creator>
    <dc:date>2022-03-11T22:08:12Z</dc:date>
    <item>
      <title>webhook with links to survey attachments</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-with-links-to-survey-attachments/m-p/1150898#M41077</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to develop a webhook that sends an automated email with links to survey attachments.&amp;nbsp; In particular, the survey is set up to take up to 5 photos, and I'm working with non-premium features of Microsoft Power Automate.&lt;/P&gt;&lt;P&gt;I was able to follow&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/working-with-survey123-attachments-in-integromat/ba-p/1020318" target="_blank" rel="noopener"&gt;Working with Survey123 attachments in Integromat&lt;/A&gt;&amp;nbsp;successfully.&amp;nbsp; Props &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;for a good article!&amp;nbsp; That said, I suspect my organization would prefer sticking with Microsoft to match existing emails, user profiles, security, etc.&amp;nbsp; Unfortunately, I don't have access to premium actions that are required to replicate the same process with Power Automate as detailed in this&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000024579" target="_blank" rel="noopener"&gt;Esri support article&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;My thought was to combine ideas from both articles, namely the URL/token tidbit of the Integromat article: &lt;STRONG&gt;&lt;FONT color="#008000"&gt;&amp;lt;attachment URL&amp;gt;&lt;/FONT&gt;?token=&lt;FONT color="#008000"&gt;&amp;lt;survey token&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp; In Power Automate, I made a flow that takes a S123 response, iterates through photo attachments to add the URL/token to an array, and then emails the array of links.&amp;nbsp; The emailed links work - at least initially - but trying to revisit links the next day (or even an hour later) leads to the "invalid token" error from the ArcGIS REST Services Directory.&lt;/P&gt;&lt;P&gt;My suspicion is that the token is only valid for a certain amount of time, which really cuts into the utility of the webhook if the email recipients don't receive, open, and save the images quickly enough.&amp;nbsp; I feel like I barely have a grasp of what's happening behind the scenes or even all this terminology, but wondering if there's any insight out there?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 22:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-with-links-to-survey-attachments/m-p/1150898#M41077</guid>
      <dc:creator>cwu</dc:creator>
      <dc:date>2022-03-11T22:08:12Z</dc:date>
    </item>
  </channel>
</rss>

