I am trying to get this work after trying to work with json. Where based on a geopoint question it returns a value.
pulldata("@layer", "getValueAt", "attributes.Label", "https://agency_name.maps.arcgis.com/home/item.html?id=5fa01c8e666740968c727b8a81f78ef7&view=service", ${Segment_ID_Point})
this is similar too what Ismael posted here
https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-laye...
Solved! Go to Solution.
Hi Steve, my guess would be that
- first : you have in fact to use the REST URL of your layer (don't forget the '/0' at the end), like
- second, you have to add a buffer instruction at the end of your URL if you want to capture the label near the point position your users will enter. ("?distance=XXX&units=YOURUNITS"
The help topic might be of help : Formules—ArcGIS Survey123 | Documentation
Have a nice day
Hi Steve, my guess would be that
- first : you have in fact to use the REST URL of your layer (don't forget the '/0' at the end), like
- second, you have to add a buffer instruction at the end of your URL if you want to capture the label near the point position your users will enter. ("?distance=XXX&units=YOURUNITS"
The help topic might be of help : Formules—ArcGIS Survey123 | Documentation
Have a nice day
Thank you Chris we still had some issues with this and after talking with support we decided to go with a geoshape question and ran into this issue.
TypeError: Cannot read property 'toString' of undefined in expression: pulldata("@layer", "getValueAt", "attributes.Label", "https://services2.arcgis.com/Uq9r85Potqm3MfRV/arcgis/rest/services/SCAT_Segments_Polygon/FeatureServ...", /Scat_Application_v3_0
if you have any advice that would be great thank you for your help!
Hello Steve, sorry for the delay. I hope you solved this problem since.
It looks like there is a problem in one argument of your formula. If you don't already solved the problem, I suggest you post more informations, perhaps a sample of your .xlsform. It seems that the line you copied is not whole.