I am trying to use Survey123 barcode scanning to pull data in from an already existing hosted feature layer then update that layer. What would be the best way to perform this process?
I don't see any way of pulling the access token from Survey123, and even if it was public data I don't see a way to set a message body for a request so I don't see a way to smuggle an update into a pulldata call. Even if you could, would you want your data to be updated at arbitrary points in the form's lifecycle instead of through a defined webhook? No matter how you slice it, trying to update arbitrary layers from a form is a bad move.
What if I am trying to update that same layer I am pulling from?
As you probably guessed, you can pull data by passing the barcode data into a pulldata("@layer") function and working with the results. To my knowledge there's no documented way to update another layer using a Survey123 form without looking into webhooks.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.