<?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: Collector GlobalID to Survey123 GUID Issues. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/collector-globalid-to-survey123-guid-issues/m-p/866004#M27019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post for reasons not to use GlobalIDs for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/166958"&gt;https://community.esri.com/thread/166958&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2020 21:48:01 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2020-04-02T21:48:01Z</dc:date>
    <item>
      <title>Collector GlobalID to Survey123 GUID Issues.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/collector-globalid-to-survey123-guid-issues/m-p/866003#M27018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I'm trying to pass my Global ID in Collector to my GUID field in Survey 123 using the custom URL and I am experiencing a&amp;nbsp;number of issues. I am following the instructions from&amp;nbsp;&lt;A href="https://community.esri.com/thread/208613"&gt;Pass Global ID from Collector to G&lt;/A&gt;&amp;nbsp;but I just can't successfully implement it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My set up is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a crossing feature class which serves as a kickoff point for my survey. It opens in Collector, has a custom popup to read values from the feature class and sends it to the survey as answers. It reads everything and passes everything except for the GlobalID -&amp;gt; GUID. I am opening my survey through this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sending values to Survey123:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var openSurvey = "arcgis-survey123://?itemID=######&amp;amp;collector_to_station=" + $feature.GlobalID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return openSurvey&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Receiving values in Survey123:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LABEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BIND:ESRIFIELDTYPE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hidden&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;collector_to_station&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Station ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;esriFieldTypeGUID&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;$feature.GlobalID is the Global ID field from my Crossing feature class. collector_to_station is the esriFieldTypeGUID in my survey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried sending it to both the Survey123 Field App and the Survey123 Web App but neither of them is reading it. Doing it this way made me notice a couple of differences as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the custom url scheme to send it to the Survey123 field app, my url looked this:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arcgis-survey123://?itemID=######&amp;amp;collector_to_station={F6EFDEB2-281F-47F7-AB0D-D82A25703B54}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the custom url scheme to send it to the Survey123 web app, my url looked like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="unlinked"&gt;https://survey123.arcgis.com/share/#######&amp;amp;field:collector_to_station=%7BF6EFDEB2-281F-47F7-AB0D-D82A25703B54%7D&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending it to the web app automatically encodes it but for Survey123 field app, it doesn't. I read from&amp;nbsp;&lt;A href="https://community.esri.com/thread/208613"&gt;Pass Global ID from Collector to G&lt;/A&gt;&amp;nbsp;that you don't need to remove the curly braces anymore for it to be stored. I still tried both ways but to no avail. Either way, my GUID didn't show up to both the web app and the field app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to note is that there is no relation between the Crossing feature class and the survey feature class. I thought that might be the problem so I created related test feature classes (and they have a 1:M relation):&amp;nbsp;&lt;STRONG&gt;parent_point&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;child_point.&amp;nbsp;&lt;/STRONG&gt;parent_point will be my feature class in collector and child_point is used for my survey. parent_point will pass the GlobalID the child_point and will be store in a GUID type field:&amp;nbsp;&lt;STRONG&gt;child_guid.&amp;nbsp;&lt;/STRONG&gt;I did the set up and pop up configurations and made it so that it can open the survey in both Field App and Web App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to send my GlobalID to my GUID in the web app link but&amp;nbsp;I also noticed something. In my earlier example, when I sent my GlobalID to GUID, it was automatically encoded, however, for this test, it wasn't:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured my popup like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var openSurvey = "https://survey123.arcgis.com/share/651dcc374c484d1b927b11188661a145?field:child_guid=" + $feature.GlobalID + "&amp;amp;field:child_field=" + $feature["parent_field"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return openSurvey&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it looked like this. The curly brackets remained and wasn't encoded:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;A class="unlinked"&gt;https://survey123.arcgis.com/share/651dcc374c484d1b927b11188661a145?field:child_guid={DDBA6C0B-D18A-476F-A9EB-A07E43AFCFDA}&amp;amp;field:child_field=Parent%20Field&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's weird that this test didn't encode it automatically but the one for my Crossing feature class was encoded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when it comes to the field app, I still can't send my GlobalID to the GUID in my survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been stuck on this problem for quite some time now and any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 19:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/collector-globalid-to-survey123-guid-issues/m-p/866003#M27018</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-02T19:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Collector GlobalID to Survey123 GUID Issues.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/collector-globalid-to-survey123-guid-issues/m-p/866004#M27019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post for reasons not to use GlobalIDs for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/166958"&gt;https://community.esri.com/thread/166958&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 21:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/collector-globalid-to-survey123-guid-issues/m-p/866004#M27019</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-04-02T21:48:01Z</dc:date>
    </item>
  </channel>
</rss>

