I need help creating a url to open an existing record in survey123 from field maps. I can get it to open a new record and populate certain fields automatically, but whenever I try to open it to edit an existing record, I just get a never-ending loop of "downloading survey" and "downloading thumbnail".
This is what I'm using:
https://survey123.arcgis.app?itemID=<itemID>?mode=edit&globalID={globalID}
Solved! Go to Solution.
The "mode=edit" parameter only applies to the web form. The best you can do with the field app URL is to specify the folder and include a filter. I've noticed that if your filter only returns a single record, it will automatically open the form.
https://survey123.arcgis.app?itemID=<itemID>&folder=inbox&action=edit&filter={globalid}
See: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm
The "mode=edit" parameter only applies to the web form. The best you can do with the field app URL is to specify the folder and include a filter. I've noticed that if your filter only returns a single record, it will automatically open the form.
https://survey123.arcgis.app?itemID=<itemID>&folder=inbox&action=edit&filter={globalid}
See: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm
In order to open your existing record using the Survey123 Field App, not the Web App, we have found the following method works to edit existing records:
Launch S123
arcgis-survey123://
Identify the survey to open
?itemID=<item id>
Specify the survey
&q:globalId=<global id>
Edit an existing survey
&action=edit
Refresh the Inbox (even though you may not even have Inbox enabled, this seems to be needed for things to work correctly)
&update=true
Example:
arcgis-survey123://?itemID=8d1361ae1cdb48a5b3a67b2bd18e571d&q:globalId=b57f5451-7d2d-4a8a-9a48-c293e85d7543&action=edit&update=true
For anyone else who comes across this, the specific problem of the never-ending unpacking loop here is caused by two question marks in the URL. The only question mark should be the one before itemID (or whatever the first parameter is); all other parameters should be preceded by an ampersand (&).
(The other responses address the question of the correct parameters to use, I'm only commenting on the never-ending unpacking loop issue.)