I am trying to create an attribute rule to populate a field with an ID attribute of an intersecting feature. My Arcade expression validates when I intersect with a feature class in the same database and with the same schema owner. In this case I am adding attribute rules to the sde.PWORKS.Sign feature class and getting attributes from the sde.PWORKS.Pole feature class. However when I try to intersect with a feature class in the same database with a different schema owner (sde.ENG.CityGrid) I receive an error that the CityGrid layer cannot be found.
Using the following to access the CityGrid layer:
var grid = FeatureSetByName($datastore, "sde.ENG.CityGrid", ["CITYGRID"], false);
Does $datastore only work if the feature class in the same database with the same owner? Is there an alternative way to access a feature class with a different schema owner?