<?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: Is it possible to send data back from Survey123 in a callback URL? in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1137546#M2343</link>
    <description>&lt;P&gt;Not seeing this covered still looking thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 18:56:11 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-01-26T18:56:11Z</dc:date>
    <item>
      <title>Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1062015#M1112</link>
      <description>&lt;P&gt;After hours of trying I think I know the answer but I wanted to check.&lt;/P&gt;&lt;P&gt;I finally got a callback URL (that double encoding is lots of fun) to work once I switched to hardcoding the values.&amp;nbsp; There are no help samples of this.&lt;/P&gt;&lt;P&gt;Here is my sample hardcodeing the callback values and feature globalid&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID=9269d29cfc994accb9c3739c556ee345&amp;amp;field:LOCAL_ID={LOCAL_ID}&amp;amp;field:GeoGUID={globalid}&amp;amp;callback=https%3A%2F%2Ffieldmaps.arcgis.app%3FitemID%3D60898699d9194370985ba5d1b88ac966%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps%3A%2F%2Fservices1.arcgis.com%2FHp6G80Pky0om7QvQ%2Farcgis%2Frest%2Fservices%2FPFCRCTest4%2FFeatureServer%2F0%26featureID%&lt;STRONG&gt;3D431c51d1-2570-4677-a13e-4a42d582cf66&lt;/STRONG&gt;%26featureAttributes%3D%257B%2522LOCAL_ID%2522%3A%2522&lt;STRONG&gt;testhardcode&lt;/STRONG&gt;%2522%2C%2522FormGUID%2522%3A%2522&lt;STRONG&gt;hardid&lt;/STRONG&gt;%2522%257D&lt;/P&gt;&lt;P&gt;But what I would like to do is pull a field back from 123.&amp;nbsp; I am doing this to link the forms in both directions.&amp;nbsp; I want to send back a guid that I generate in 122.&lt;/P&gt;&lt;P&gt;I have tried this (unencoded).&amp;nbsp; Just the callback part works from 123 so I got that part right and I can use 123 fields just fine.&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID=9269d29cfc994accb9c3739c556ee345&amp;amp;field:LOCAL_ID={LOCAL_ID}&amp;amp;field:GeoGUID={globalid}&amp;amp;callback=&lt;A href="https://fieldmaps.arcgis.app?itemID=60898699d9194370985ba5d1b88ac966&amp;amp;referenceContext=updateFeature&amp;amp;featureSourceURL=https://services1.arcgis.com/Hp6G80Pky0om7QvQ/arcgis/rest/services/PFCRCTest4/FeatureServer/0&amp;amp;featureID=431c51d1-2570-4677-a13e-4a42d582cf66&amp;amp;featureAttributes=%7B%22LOCAL_ID%22:%22" target="_blank" rel="noopener"&gt;https://fieldmaps.arcgis.app?itemID=60898699d9194370985ba5d1b88ac966&amp;amp;referenceContext=updateFeature&amp;amp;featureSourceURL=https://services1.arcgis.com/Hp6G80Pky0om7QvQ/arcgis/rest/services/PFCRCTest4/FeatureServer/0&amp;amp;featureID=431c51d1-2570-4677-a13e-4a42d582cf66&amp;amp;featureAttributes=%7B%22LOCAL_ID%22:%22&lt;/A&gt;&lt;STRONG&gt;${LOCAL_ID}&lt;/STRONG&gt;%22,%22FormGUID%22:%22$&lt;STRONG&gt;{FormGUID}&lt;/STRONG&gt;%22%7D&lt;/P&gt;&lt;P&gt;I have a feeling that the callback URL is hard generated at the time of the call in Field Maps.&amp;nbsp; That means referencing a field in 123 with ${LOCAL_ID} makes no sense since you are in Field Maps at the time the URL is generated.&amp;nbsp; Am I right?&lt;/P&gt;&lt;P&gt;If I am in right is there any way to send data to 123 via a URL then use callback to send 123 data back in to Field Maps?&lt;/P&gt;&lt;P&gt;thanks for any help&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 20:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1062015#M1112</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-26T20:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1137546#M2343</link>
      <description>&lt;P&gt;Not seeing this covered still looking thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1137546#M2343</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-26T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232129#M4872</link>
      <description>&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;I stumbled across your post after looking into the use of url callbacks. I agree the ability to send data back from Survey123 would be great. After reading your post and a lot of tinkering with the encoding I at least managed to set up a system where once the survey has been completed the callback goes back to the polygon layer and updates a status field to indicate that the associated survey has been completed for that particular polygon. My hope is that this will help our surveyors keep track of which features they've fully completed. Plus with the new filter options in Field Maps it means they can filter to show those they've missed.&lt;/P&gt;&lt;P&gt;So I'm not really offering anything new to the conversation but just wanted to say thanks as your post convinced me that more complex call backs are possible! Cheers&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 09:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232129#M4872</guid>
      <dc:creator>AnthonyJonesRSK</dc:creator>
      <dc:date>2022-11-16T09:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232202#M4876</link>
      <description>&lt;P&gt;Cool can you post a sample?&amp;nbsp; My guess is you could hardcode the data somehow.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232202#M4876</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-11-16T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232214#M4879</link>
      <description>&lt;P&gt;Sure. My url is generated in Arcade, see below. You can ignore most of it but I spent a long time trying to get the callback variables to work. Basically I found that if I included my callback variables in a parameters dictionary as I've done for the survey123 parameters and then used the UrlEncode function, Field Maps didn't appear to like that and kept telling me that I needed to supply the featureID parameter despite it being there in the url. I ended up realising that Field Maps doesn't like any ampersands after the callback which is why I've had to encode these manually rather than using the UrlEncode function on the parameters dictionary, which kept adding the ampersands back in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The callback part of my script could probably be written a bit more elegantly as I'm still fairly new to Arcade but this worked so I didn't want to mess with it too much! Like you say it would be great to pull data back from S123 in the callback but I was at least glad to be able to get it to update the layer in Field Maps once the form had been completed. The only thing I don't like is that when it goes back to Field Maps the&amp;nbsp;&lt;SPAN&gt;updateFeature element reopens the form and it'd be great if it just wrote "Yes" to the field without the form being opened again, to avoid the surveyor changing anything else by accident.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Don't know if that's of any of use but just wanted to acknowledge your post as it was the first thing I'd seen that suggested additional callback parameters may be possible. Cheers&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Convert coordinates to wgs84 for use in survey123&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;WebMercatorToWGS84&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;lon&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;20037508.34&lt;/SPAN&gt;&lt;SPAN&gt;) * &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;lat&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;20037508.34&lt;/SPAN&gt;&lt;SPAN&gt;) * &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lat&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;PI&lt;/SPAN&gt;&lt;SPAN&gt; * (&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;Atan&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Exp&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;lat&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;PI&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;)) - &lt;/SPAN&gt;&lt;SPAN&gt;PI&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;lat&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;lon&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Launch survey123&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;urlsource&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;"arcgis-survey123://?itemid=XXXXXXX&amp;amp;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Get centroid of feature&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;geom&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Centroid&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Generate coordinates from centroid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;coords&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;WebMercatorToWGS84&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geom&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;geom&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Format coordinates so they work with survey123 geopoint&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;splitcoords&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;coords&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;coords&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Get polygon area to pass to survey123&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;featurearea&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Round&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AreaGeodetic&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'square-meters'&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Format globalid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;fglobalid&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Mid&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;globalid&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;36&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Generate other url parameters to pass to survey123&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;params&lt;/SPAN&gt;&lt;SPAN&gt; = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;center&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;splitcoords&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:FeatureProjectCode"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PolygonProjectCode&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:FeatureSiteID"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PolygonSiteID&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:IDCount"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PolygonCount&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:CommonName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PolygonCommonName&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:parentglobalid"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parentglobalid&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:GeometryGUID"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;globalid&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:FeatureType"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Polygon"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"field:FeatureSize"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;featurearea&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;callback&lt;/SPAN&gt;&lt;SPAN&gt; = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;callback&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://fieldmaps.arcgis.app/?referenceContext=updateFeature&amp;amp;itemID=XXXXXXX&amp;amp;featureSourceURL=XXXXXXXX" target="_blank"&gt;https://fieldmaps.arcgis.app/?referenceContext=updateFeature&amp;amp;itemID=XXXXXXX&amp;amp;featureSourceURL=XXXXXXXX&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;callbackid&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"featureID="&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;fglobalid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;callbackattributes&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'featureAttributes={"PolygonDataEntered":"Yes"}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;urlsource&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;UrlEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;params&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;amp;"&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;UrlEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;callback&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;"%26"&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;UrlEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;callbackid&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;"%26"&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;UrlEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;callbackattributes&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1232214#M4879</guid>
      <dc:creator>AnthonyJonesRSK</dc:creator>
      <dc:date>2022-11-16T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247737#M5150</link>
      <description>&lt;P&gt;Would your process work if I have a public S123 that goes into webmap which lunches internal S123 for inspection. Any help in how to set this up and be able to pass parameter between the collected information in the first survey and the second survey.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247737#M5150</guid>
      <dc:creator>utenalarosa</dc:creator>
      <dc:date>2023-01-12T19:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247771#M5151</link>
      <description>&lt;P&gt;Yes you can use a URL to launch a form the same way as you do in field maps, no different.&amp;nbsp; Just make a note field and have the link in the label part.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247771#M5151</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-01-12T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247775#M5152</link>
      <description>&lt;P&gt;So i am able to lunch the second s123 with the correct globalid in the url what i don't know how to do is store that information on a field called ParentID.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1247775#M5152</guid>
      <dc:creator>utenalarosa</dc:creator>
      <dc:date>2023-01-12T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1271798#M5625</link>
      <description>&lt;P&gt;Amazing - this has been good to dabble with - my issue is that I can't get the last section for call back attributes changing&lt;/P&gt;&lt;P&gt;//Launch survey123&lt;BR /&gt;var urlsource ="arcgis-survey123://?itemid=XXXXXX&amp;amp;";&lt;/P&gt;&lt;P&gt;//Generate other url parameters to pass to survey123&lt;BR /&gt;var params = {&lt;BR /&gt;"field:SubmittingGlobalID": $feature.GlobalID,&lt;BR /&gt;"field:NAQSActivityCodeTemp": $feature.ReviewedSurveyID,&lt;BR /&gt;"field:Starting_survey_ID": $feature.First_specimen,&lt;BR /&gt;"field:AnimalType": $feature.SurveyType,&lt;BR /&gt;"field:SpeciesUnderInvestigation": $feature.CommonName,&lt;BR /&gt;"field:Feral_Group_ID": $feature.Group_ID,&lt;BR /&gt;};&lt;BR /&gt;var callback = {&lt;BR /&gt;callback: "&lt;A href="https://fieldmaps.arcgis.app/?referenceContext=updateFeature&amp;amp;itemID=XXXXXXXX&amp;amp;featureSourceURL=XXXXXXX" target="_blank" rel="noopener"&gt;https://fieldmaps.arcgis.app/?referenceContext=updateFeature&amp;amp;itemID=XXXXXXXX&amp;amp;featureSourceURL=XXXXXXX&lt;/A&gt;",&lt;BR /&gt;}&lt;BR /&gt;var callbackid = "featureID=" + GlobalID&lt;BR /&gt;var callbackattributes = 'featureAttributes={"SampledGroup":"Yes"}'&lt;/P&gt;&lt;P&gt;return urlsource + UrlEncode(params) + "&amp;amp;" + UrlEncode(callback) + "%26" + UrlEncode(callbackid) + "%26" + UrlEncode(callbackattributes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use this approach, I can go to survey123, plug my data in and then return back to the app, but the callback attributes just doesn't work, just lands on field maps with the old pop up. Seeking even a suggestion that opens up the form at attribute that needs to be filled in&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 05:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1271798#M5625</guid>
      <dc:creator>GuyWeerasingheAFF</dc:creator>
      <dc:date>2023-03-27T05:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323573#M6891</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, @AnthonyJones5 Is there any news on the ability to callback a Survey123 field into Field Maps?&amp;nbsp; I have been able to hard code as noted above but would like to be able to use the callback feature and write a survey123 field back into Field Maps. Ideal Workflow: Open Field Maps popup, button opens survey123, writes two attributes to survey123, when survey is submitted callback opens Field Maps centers on feature, and &lt;STRONG&gt;writes two survey123 attributes&lt;/STRONG&gt;. It's just the last bit I can't seem to get to work.&lt;/P&gt;&lt;P&gt;Using the above example it would look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var&amp;nbsp;callbackattributes&amp;nbsp;=&amp;nbsp;'featureAttributes={"PolygonDataEntered":"$feature.Survey123attribute"}'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323573#M6891</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2023-08-29T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323579#M6892</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/401036"&gt;@AndrewPadilla&lt;/a&gt;&amp;nbsp;I do not think it will ever be possible because the URL is constructed at the time it is created in Field Maps.&amp;nbsp; At that point in the process there is no 123 field yet and you are not even in 123.&amp;nbsp; Which makes sense.&amp;nbsp; It would have to create a new URL when it gets to the 123 part.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only thing I can think of is to have a different URL generated in 123 form that they can click on.&amp;nbsp; But what will happen then is 123 form will still be open in the background in edit mode.&amp;nbsp; You can test but I think so.&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323579#M6892</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-08-29T17:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323589#M6894</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp; Thanks for your quick reply. I figured that might be the case. That would turn a survey submission into a two step process, one to change the Field maps attribute and one to submit the survey. Alternatively, after callback to Field Maps I might add a switch field where the users could manually record whether a survey was completed. We are working offline and a submitted survey could be either a survey or updates to child tables only.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 18:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323589#M6894</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2023-08-29T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323602#M6897</link>
      <description>&lt;P&gt;You could harcode two different URLs?&amp;nbsp; Like one link is update tables only and the other is survey updates?&lt;/P&gt;&lt;P&gt;You could also use arcade after the fact to display the status in the map.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 18:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1323602#M6897</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-08-29T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1324932#M6927</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt; I took you suggestion and hardcoded two different URL buttons, it should work out well.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 20:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1324932#M6927</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2023-09-01T20:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1455789#M8635</link>
      <description>&lt;P&gt;I'm having the same problem. Can call Survey123, pass attributes and centroid Lat/Long for geopoint creation, but upon returning to Field Maps, it just shows the popup. No edit pane or fields updated. Trying to update a field with the date and time that the survey happened via Now() in my Arcade URL generation .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 07:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1455789#M8635</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-05-13T07:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1490646#M8870</link>
      <description>&lt;P&gt;What I'm trying to achieve:&lt;/P&gt;&lt;P&gt;A non-ESRI app has fields that record lat/long. Embedded within the app is a button with html that calls Field Maps with the option to add a point and lat/long fields are calculated there. Is there a way that a callback URL can be created which after data is created in Field Maps calls the URL of the non-ESRI app with the lat/long appended? So the callback is dynamic but only created after Field Maps is called? Does this makes sense? Anyone any ideas? I'm expecting the answer to be no. Workaround would be not using a callback, but having a calculated field with the URL in Field Maps which opens the non-ESRI app when tapped.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 15:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1490646#M8870</guid>
      <dc:creator>FrancisCorbett</dc:creator>
      <dc:date>2024-06-12T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send data back from Survey123 in a callback URL?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1491398#M8879</link>
      <description>&lt;P&gt;Hi Francis,&lt;/P&gt;&lt;P&gt;As far as I'm aware I don't believe this is possible. As Doug suggests above you cannot pass data from the app that is opened by the url (in your case Field Maps, in ours S123) via the call back. You would need to do as you suggest and have a separate url generated in the pop up of Field Maps that passes the lat/long back to your other app. Not sure if this will cause issues though as it may open a separate instance of your other app i.e. you will have the original session that opens Field Maps still running but then the link from Field Maps may open a new session. This obviously depends how your other app works so may be something to look into. Could your process possibly start with Field Maps and the location recording?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1491398#M8879</guid>
      <dc:creator>AnthonyJonesRSK</dc:creator>
      <dc:date>2024-06-13T09:08:31Z</dc:date>
    </item>
  </channel>
</rss>

