Select to view content in your preferred language

Query (Feature Service) return parent and child

616
0
05-18-2021 08:40 AM
Labels (1)
StuartMoore
Frequent Contributor

is it possible to use the AGOL REST endpoint to return a specific feature and all of the related child records without having to use the Query Related Records (Feature Service) 

i have tried with : Query (Feature Service) 

using: 

[{ "layerId" : 0,"where": "objectid = 10003", "outfields": "*", "includeRelated" : true},{ "layerId" : 1,"outfields": "*", "includeRelated" : true}]

but it didn't work, and i couldn't work out how to pass the GlobalID from Layer 0 to the ParentGlobalID on layer 1

i don't really want to have to run 10 REST calls to get all the related records if i can do it all in 1

fingers crossed someone has done this....

thanks

Stu 

Tags (3)
0 Replies