Hi,
I'm following the tutorial here: https://community.esri.com/t5/attribute-rules-videos/update-multiple-fields-with-a-single-attribute/m-p/1016597#M16 , but can't seem to get this to work. Can anyone provide some insight??
//first get the intersecting grid
var gridNo = FeatureSetByName($datastore, "LAND_Grid", ["GRIDNO"], false);
var intersectingGrid = first(intersects(gridNo, $feature));
//return nothing if no intersection
if (intersectingGrid==null)
{return null};
return
{"result" :
{"attributes" :
{"FACILITYID" : "HYD-" + intersectingGrid.GRIDNO + "-" + NextSequenceValue("SeqHydrants"),
"GRIDNO" : gridNo}
}
}