Select to view content in your preferred language

How do I use the pulldata calculation to pull values from a point layer into survey123?

663
8
Jump to solution
03-02-2026 10:06 AM
FM5091
by
Occasional Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
MVP Regular Contributor

@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.

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_BB97985...

View solution in original post

8 Replies
Neal_t_k
MVP Regular Contributor
0 Kudos
FM5091
by
Occasional Contributor
Thanks for sharing. Since the examples are for point‑in‑polygon, could you provide an example of querying a point feature using a GeoPoint or GeoSHP?
0 Kudos
Neal_t_k
MVP Regular Contributor

@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.

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_BB97985...

AndySchmidt
Occasional Contributor

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?

0 Kudos
Neal_t_k
MVP Regular Contributor
0 Kudos
AndySchmidt
Occasional Contributor

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 

0 Kudos
Neal_t_k
MVP Regular Contributor

@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.

https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-...

0 Kudos
FM5091
by
Occasional Contributor

Thanks, I got it working!

0 Kudos