AnsweredAssumed Answered

Survey123 Make Rest Queries

Question asked by roemhildtg on Feb 6, 2020
Latest reply on Feb 28, 2020 by JTedrick-esristaff

I'm wondering if this is possible:

We have a project where it would be beneficial to automatically populate several pieces of information from a parcel layer using GPS location. User moves about adding records to a related table using a repeat and for each point, we'd like to capture the Address, and Parcel ID, as well as some other information about the parcel, owner, etc.


To do this, I have  an arcgis server rest endpoint set up that I woudl like to make queries against to populate the values. Is this possible?


I'm imagingin the form would look like this:


begin_repeat Maintenance_Item

Location (point)



Address -> concat(response.features[0].attributes.addr_number, ' ', response.features[0].attributes.street_name)

Parcel ID ->response.features[0].attributes.parcelid

Owner -> response.features[0].attributes.owner_name





I know Javascript extensions are now supported, but what API's are exposed? Is `fetch` an option here? How does async/promise work with Survey123?