Hello,
I am trying to make an asset collection field map and am running into some issues trying to auto-populate the Room Number the asset is located in.
I am using this one code line below to load the Units indoor layer and return the room number of the first row that intersects the newly placed feature.
return First(Intersects(FeatureSetByName($map, "Units", ["NAME"]), $feature)).NAME
The issue I am running into is that this will return room numbers from rooms that have been filtered out in the Floor Filter. Basically, if I am filtered to level 2 of a specific building, and place a new point in a room, it will auto-populate the room number of a room on level 1 instead of level 2.
I am not sure if I am just missing something or if this is working as intended. How would I go about getting the correct room number?