I have an arcade expression that updates a field for polylines based on what points it intersects on another layer. I use FeatureSetByName() to find the only other layer on the map. This works in ArcGIS Pro if I use $datastore as the Feature Set Collection (first parameter).
According to the documentation, I should be able to use $map or $datastore depending on the situation. When I try to run the same expression on the webmap, $datastore returns an empty string since the Feature Set Collection is null. This is expected since the layers are not part of the same Feature Service.
However, $map does not exist in the editor and if I type it in anyway, I get the error 'Identifier not recognized.' This is what happens trying to do a field calculation.

Does $map no longer exist? I thought it would work to find other layers on the same map. Is there another way to achieve the same result?