<?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: Get token from survey in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1246629#M46861</link>
    <description>&lt;P&gt;If it works for some users but not others it suggests it's tied to your environment or the user.&lt;/P&gt;&lt;P&gt;Are these users outside the network logged in or public? Public users won't have a token.&lt;/P&gt;&lt;P&gt;You could also add a http request to your webhook to generate a token. Set a flow of token = pass, no token = http request to generate a token. Then set the token.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 21:51:44 GMT</pubDate>
    <dc:creator>ChristopherCounsell</dc:creator>
    <dc:date>2023-01-09T21:51:44Z</dc:date>
    <item>
      <title>Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1245610#M46802</link>
      <description>&lt;P&gt;I am trying to get users attachments and send them to email via power automate. We don't have premium features for power automate. We can't use HTTP to be able to send the attachments the correct way. We are able to get the attachment to be sent but we cannot open it because of the missing token. We bypassed this temporarily by setting a static token, but this only works for a day. So my question is, can I pull the token URL from the form and set it as an attribute that way I can access it using the web hooks?&lt;/P&gt;&lt;P&gt;I used a type calculate and in the calculation field, I tried settings pulldata(‘@property’,’token’), but this doesn't seem to work. If you can point me to the right direction it would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanEsquivel_0-1672931372134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59793iC08BE9DC5DE50B98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanEsquivel_0-1672931372134.png" alt="JuanEsquivel_0-1672931372134.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanEsquivel_0-1672931372134.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanEsquivel_1-1672931428148.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59794iDB2F9930B4AE2BCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanEsquivel_1-1672931428148.png" alt="JuanEsquivel_1-1672931428148.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanEsquivel_1-1672931428148.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 15:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1245610#M46802</guid>
      <dc:creator>JuanEsquivel</dc:creator>
      <dc:date>2023-01-05T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1245892#M46829</link>
      <description>&lt;P&gt;Tokens can be included as part of the webhook payload information under portalInfo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/create-surveys/webhooks.htm#ESRI_SECTION1_65E73F503088419AA552E6E991124FD5" target="_blank"&gt;https://doc.arcgis.com/en/survey123/browser/create-surveys/webhooks.htm#ESRI_SECTION1_65E73F503088419AA552E6E991124FD5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Go to the Survey123 website, manage the survey, and check portalInfo. A token should become part of the webhook payload. You will need to redownload the survey and maybe refresh the webhook connection in automate.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 22:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1245892#M46829</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-05T22:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1246012#M46834</link>
      <description>&lt;P&gt;Hey magisian,&lt;/P&gt;&lt;P&gt;That box is checked, and the connection prior to it was refreshed. It seems when I test my flow the portalinfo is not being sent. I believe if its done internally where our portal is setup it sends the token. If someone outside the network no token is being sent.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1246012#M46834</guid>
      <dc:creator>JuanEsquivel</dc:creator>
      <dc:date>2023-01-06T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1246629#M46861</link>
      <description>&lt;P&gt;If it works for some users but not others it suggests it's tied to your environment or the user.&lt;/P&gt;&lt;P&gt;Are these users outside the network logged in or public? Public users won't have a token.&lt;/P&gt;&lt;P&gt;You could also add a http request to your webhook to generate a token. Set a flow of token = pass, no token = http request to generate a token. Then set the token.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 21:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1246629#M46861</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-09T21:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1289948#M49328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/412943"&gt;@ChristopherCounsell&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Does this mean public facing survey123 is not going to be able to extract attachment using Power Automate since the token is going to be empty/null.&lt;/P&gt;&lt;P&gt;I built a public facing Survey123 form, and now I found that my Power Automate workflow only work for organizational users with credentials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a work around of this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks tons!&lt;/P&gt;&lt;P&gt;Reno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 04:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1289948#M49328</guid>
      <dc:creator>rsun_TQB</dc:creator>
      <dc:date>2023-05-17T04:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get token from survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1290890#M49377</link>
      <description>&lt;P&gt;If your layer is publicly accessible (for queries), you should not need a token:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-working-with/ba-p/1000916" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-working-with/ba-p/1000916&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If your survey is from the public, so no token is passed, but the layer you are querying is private (token required), you won't be able to use a token that doesn't exist to request the photo. You could consider embedding a user/password in the power automate webhook to request a token that can be used to request the image. Personally, not a fan of doing this.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 23:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/get-token-from-survey/m-p/1290890#M49377</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-05-18T23:58:09Z</dc:date>
    </item>
  </channel>
</rss>

