Hi Community,
i would like to add name value from a polygon to another feature class. Intersect works.
for (var nomterritoire in FeatureSetByName($datastore,"Zone")) {
if (Intersects($feature,Geometry(nomterritoire))) {
return nomterritoire["Name"];
}}

My issue, both fields use a same coded domain value. Code is an UUID, description value is a text value like Toulouse, Rodez.
Attribute rule get description value back but not code value, so users had warning message.
Is there a way to get back code value ?
Another way will be python script but users prefer work with arcade attribute rule.