I'm trying to make a popup expression that will buffer a line to select intersecting parcels, then return a count of points that are within that resulting featureset of parcels. This is my code representing what I'm attempting, but it seems you cannot intersect two featuresets. How should I go about this?
var parcels = FeatureSetByName($map, "Parcels")
var sites = FeatureSetByName($map, "MHC Inventory Points")
var routes = $feature
//return all parcels within 200 feet of route
var int1 = Intersects(bufferGeodetic($feature, 200, "feet"), parcels)
//return featureset of sites that are within first intersection featureset
// this intersection is giving an execution error
var int2 = Intersects(sites, int1)
return count(int2)