Hello,
I'm using survey123 Connect v3.22. We have an Enterprise geodatabase set up with SQL Server if that's relavant.
I've created a survey that technicians can use to log maintenance activities related to specific assets in the field. Everything worked as intended, but they've come back with some enhancement requests. I've been able to work through most of them but I'm stuck on the last one.
Originally I created an Experience that allowed users to click/tap on features in a webmap and, through a url decorated with attributes from the feature popup, launch a survey with read-only fields pre-populated. However, the user group wants to be able to start the entire process from the Survey123 app instead of going through Experience Builder.
Because (to my knowledge) you can't select and retrieve features and their attributes through Survey123, I found a javascript snippet that allowed me to retrieve the attributes of the feature using a geopoint question. This works fine.
But they also wanted the features that had maintenance activity associated with them in the current calendar year to be colored differently in the web map after submitting a survey. I didn't see a way to easily do that in MapViewer through a lookup lookup function using Arcade or a simple table join so I've set up a service with only the necessary fields and editing abilities, that allows me to store the survey responses in our authoritative dataset by using the submission url. That way I can just symbolize the layer on that attribute. I've tested the data update from Survey123 to my dataset and it works. But, it only works through the web app because I have to set the url parameters to ?mode=edit&globalId={enter global id here}. I can't seem to get the desktop or mobile apps to load with these same parameters. But regardless, I'm not sure if that would accomplish what I'm trying to do as the user group doesn't want an external url that launches the form.
So my question. Is it possible, all within the Survey123 app, to take the global ID I've retrieved through the pulldata/javascript function, and use it to update the corresponding record in our authoritative data with an attribute(s) that corresponds to the maintenance activity?
Thank you!
@IsmaelChivite @JamesTedrick @CraigRussell