Attribute rule Instersect Domain Value

149
0
04-15-2021 09:09 AM
Labels (3)
JPDeboos
New Contributor

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"];
}}

JPDeboos_0-1618502715200.png

 

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.

0 Kudos
0 Replies