Hello,
I am trying to populate a field based on where a joining ID is between two tables. I have a relationship class set up between two tables but I want to bring over another value than just a GlobalID. So I was trying to use an attribute class to do this but it is not working for me. Can someone help?
My joining field is LocationGlobalID = GlobalID
The field I want populated from one table to the other is GdBOrderNumber = GdBOrderNumber
var f_gid = $feature.LocationGlobalID;
var Project = FeatureSetByName($datastore, "Database.DBO.[Other Table]", ["*"], true);
var Join = Filter(Project, "GlobalID = @f_gid");
return {
'result': $feature.GdBOrderNumber,
'edit': [
{"GdBOrderNumber": $feature.GdBOrderNumber
}
]
};