AnsweredAssumed Answered

In need of help with Arcade expressions

Question asked by adamfm on Nov 15, 2019
Latest reply on Dec 2, 2019 by xander_bakker

I have two features in my map. A polygon feature and a point feature. I would like to join the polygon feature to the point feature using a common field. All the points are contained within the polygons. I have about 2000 points and 100's of polygons. I have tried using the Arcade expression below to calculate the join field in my point features to populate it with the unique identifier of the polygon:


var intersectLayer =Within(FeatureSetByName($datastore, "Polygon"),Geometry($feature))


var address = ""


var cnt = 0


for (var f in intersectLayer){

    if (cnt == 0){

    address = f.oaddr2


    else {address = "No Address Found"}


return address



I am still very inexperienced with coding, so I apologize if my question is not entirely clear.