Hello,
I’m having trouble using the pulldata() function to retrieve values from a point feature layer in my Survey123 form. I’m using a geopoint question to select a location near the layer I want to query, but no values are being returned.
What is the correct approach for pulling attributes from a point feature layer using pulldata? If this is possible, could someone provide an example or outline the steps required to set this up?
Thank you for any guidance.
Solved! Go to Solution.
@FM5091 You can buffer a point location and capture points within that buffer. However if there are multiple points I believe it only will return one of them.
pulldata("@layer", "getRecordAt", "<url>?distance=1600&units=esriSRUnit_Foot", ${location})
https://community.esri.com/t5/arcgis-survey123-questions/s123-form-clickable-map-not-working-to-return/m-p/1632551/highlight/true#M63325
There are other various way you can use the Rest API to query you feature layer:
https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/
Documentation says "The location specified in a spatial query must be a geopoint question." so no go on using a shape for the query.
These should get you started.
@FM5091 You can buffer a point location and capture points within that buffer. However if there are multiple points I believe it only will return one of them.
pulldata("@layer", "getRecordAt", "<url>?distance=1600&units=esriSRUnit_Foot", ${location})
https://community.esri.com/t5/arcgis-survey123-questions/s123-form-clickable-map-not-working-to-return/m-p/1632551/highlight/true#M63325
There are other various way you can use the Rest API to query you feature layer:
https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/
Documentation says "The location specified in a spatial query must be a geopoint question." so no go on using a shape for the query.
Is there a way to return closest feature to the pulldata request or a way to get a picklist of all features intersected within the distance to make a selection from?
@AndySchmidt This post answers how to achieve that:
Thanks for the answer for using a generated Thiessen Polygon layer, I was as hoping to query off of a live changing dataset where sometimes points are in close proximity of each other
@AndySchmidt I suggest asking a new question, explaining more detail of what you are trying to achieve, there may be some options using a dynamic choice list and the search appearance.
Thanks, I got it working!