Thanks for your reply and sharing documentation on the same, Ed! Yes, basically, I want to copy values from X to Y based on common ID.
FC X = Polygon (project development)
FC Y = Line (sewer upgrades)
After reading few technical blogs - (https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/attribute-rules-and-group-temp... , https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-ed...) , with my limited knowledge of Arccade expression language I build following logic but running into issue with line 12.
Here is the expression that I came with so far for FC Y to copy values for TECH_REV from FC X based on common ID - DBNUMBER. After user draws lines for sewer upgrades and populate the DBNUMBER, I want this rule to fire up and get the value for TECH_REV from FC X.
//s1 - get features from projects developments feature class
var origin = FeatureSetByName($datastore, "Project_Developments", ["DBNUMBER","TECH_REV"], false);
//s2 - get common ID from newly added feature
var dbnumber = $feature.DBNUMBER;
// s3 - filter feature based on common ID
var match = Filter(origin, "DBNUMBER = @dbnumber");
var matchfeature = first(match);
// s4 - update TECH_REV field in sewer upgrades
return matchfeature.TECH_REV;