Hi, I'm quite new to Arcade Expressions and have created a few simple ones and getting to grips with the basics. I've currently got an address layer that when a user selects a record it returns information on various intersecting features. One of these is for school catchments, which works fine, but I'd also like to return associated nursery school data which is stored in a separate table and has a common identifier field which links nurseries with school catchments.
So, basically what I want to return is the intersecting primary school name value from the school catchment boundary (which I've done) and also the nursery schools associated with that same school in the lines underneath. Expression so far is simply this:
var intersectLayer =Intersects(FeatureSetByName($map,"School Catchment Areas"), $feature)
for (var f in intersectLayer){
return f.name
}
How do I take it a step further to get the associated nursery schools from the separate table?
Thank you.