We have a fairly complex Arcade script that executes on Enterprise Geodatabase feature class Insert via a sync from an offline area in the field maps app.
If we query the feature class using Filter(FeatureSetByName()), the returned feat_set does not contain $feature that triggered the attribute rule.
var calcFeatId = -99;
var sqlexpression = "feat_id = @calcFeatId"
var feat_set = Filter(FeatureSetByName($datastore,'mydb.dbo.pt_layer',['globalid'],false),sqlexpression);
return {
'attributes':{ //values to calculate on $feature
'feat_id': calcFeatId
}
};
Is this expected behavior?
Further, what if that same attribute rule modifies attribute values of $feature. Would the above query include $feature in the filtered featureSet?