Survey123 Connect Pull location data for a geopoint from a hosted feature layer

873
4
Jump to solution
11-14-2024 10:10 PM
KeshavSingh
Emerging Contributor

Hi there,

I was working on a project where I wanted to pull location data for a point from a hosted point layer. I was trying to use the pull data command, but it didn't return any value.

I tried to fix the UNITID, but still it doesn't return any value.

pulldata("@layer", "Latitude", "https://services8.arcgis.com/EnRf3TCZwFndmCJx/arcgis/rest/services/inspection/FeatureServer/0", "UNITID", "0737")

I may be using the wrong command here; can anyone please guide me?

0 Kudos
2 Solutions

Accepted Solutions
JillianStanford
Frequent Contributor

Hi,

If I'm understanding correctly, what works for me is to retrieve the location from a feature layer into a hidden field as JSON and then pull out the x and y from that.

JillianStanford_0-1731693441320.png

Does that work for you?

View solution in original post

JillianStanford
Frequent Contributor

From your first post it looks like UNITID is a string?

Have you tried wrapping your where clause value in quotes?

concat("UNITID ='", ${UNIT},"'")

View solution in original post

4 Replies
JillianStanford
Frequent Contributor

Hi,

If I'm understanding correctly, what works for me is to retrieve the location from a feature layer into a hidden field as JSON and then pull out the x and y from that.

JillianStanford_0-1731693441320.png

Does that work for you?

KeshavSingh
Emerging Contributor

Hi Jillian, 

Thanks for the response. I created a new form to test this out.  But the pull function doesn't return any value.

I have attached the pull function syntax.  

KeshavSingh_0-1731824040928.png

 

 

0 Kudos
JillianStanford
Frequent Contributor

From your first post it looks like UNITID is a string?

Have you tried wrapping your where clause value in quotes?

concat("UNITID ='", ${UNIT},"'")

KeshavSingh
Emerging Contributor

Oh, shoot! Thanks for pointing out that mistake. It is working now. Thanks for the help!

0 Kudos