Hi all,
I would like to map sites with with Field Maps. Then create a URL link to open a Survey123 form for the monitoring. I want the URL also to copy the GlobalID from Field Maps feature layer to the Survey123 feature layer. I checked numerous ESRI forum threats on how to do this and am a bit confused. Nothing seem to work in my case: either the globalid is not copied, or Survey123 gets in an 'unpacking' loop. These are the URL's I tried in the pop up menu of Field Maps feature layer:
arcgis-survey123://?itemID=4a418d2194?mode=edit&field:globalid={globalid} >> loop bug Survey123
arcgis-survey123://?itemID=4a418d2194?mode=copy&field:globalid={globalid} >> loop bug Survey123
arcgis-survey123://?itemID=4a418d2194?action=copy&field:globalid={globalid} >> loop bug Survey123
arcgis-survey123://?itemID=4a418d2194&field:globalid={globalid} >> not copying globalid
arcgis-survey123://?itemID=4a418d2194&globalid={globalid} >> not copying globalid
arcgis-survey123://?itemID=4a418d2194&action=edit&q:globalid={globalid} >> not copying globalid
Nothing works. This describes the loop problem/bug (post of 2021): https://community.esri.com/t5/arcgis-survey123-questions/updating-public-survey-causes-unpacking-fai....
Can anyone shed some light where I may have to find the solution and can make this work? Thanks in advance for the help.
Here's what I'm using on my current projects, this requires using Arcade to make a special field for the URL:
"https://survey123.arcgis.app?itemID=blahblahbalh&action=edit&update=true&q:globalId=" + Lower(Mid($feature.GlobalID, 1, 36))
I think you should be able to swap out the first part of the URL with the other link type, depending on what works better for your set of devices. As for that GlobalID part, this removes the curly braces and lowercases the letters, this should avoid any issues with a GlobalID in a URL.
You can send the globalid to a text field (or GUID I think) but you cannot assign a value to a globalid. These are system controlled. They are also not set until the form is uploaded.
What I do is have a different key with a different relationship class that is text based and use that. I stay away from using globalids for relates for several reasons. Big one being if you ever move the data or restore records you are kinda stuck. Also the massive bug with Pro changing the case to upper breaks your relates. Post on this here https://community.esri.com/t5/arcgis-collector-questions/related-tables-for-offline-data-collection/...
I have a write up on how I relate forms back to a main point here https://community.esri.com/thread/221263-mapping-with-survey123-within-a-polygon-or-admin-unit
Hope that helps.