<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using attribute rules to copy attribute from one feature to another in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1669401#M100489</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;! I figured it had something to do with the filter but I was at a loss as to what it could be. I used your script with template literals and it worked like a charm! They're something I've heard of but haven't really utilized until now.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 18:28:17 GMT</pubDate>
    <dc:creator>MelissaGearman</dc:creator>
    <dc:date>2025-12-01T18:28:17Z</dc:date>
    <item>
      <title>Using attribute rules to copy attribute from one feature to another</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1666300#M100183</link>
      <description>&lt;P&gt;I need to copy an attribute from a table to a feature class using attribute rules.&lt;/P&gt;&lt;P&gt;The scenario is this: I have a signs table (Signs_InOffice) that is populated with a ton of sign information (name, price, quantity, etc.).&amp;nbsp; I also have a signs report layer (Signs_InOfficeReport) that gets added to whenever a new sign gets made. What I need to happen is when a new feature gets added to the report layer, the price attribute gets populated based on the price attribute in the signs table of that same sign name.&lt;/P&gt;&lt;P data-unlink="true"&gt;Using the information I found on this &lt;A href="https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-to-copy-attributes-from-another/td-p/1375587" target="_self"&gt;post&lt;/A&gt;, I tried the following on the signs table. The expression is valid but when I go to make an update or add a new feature, the price attribute does not get populated in the report layer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelissaGearman_0-1763394485507.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143876i415BFC53BB48B8DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelissaGearman_0-1763394485507.png" alt="MelissaGearman_0-1763394485507.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 15:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1666300#M100183</guid>
      <dc:creator>MelissaGearman</dc:creator>
      <dc:date>2025-11-17T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using attribute rules to copy attribute from one feature to another</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1666767#M100218</link>
      <description>&lt;P&gt;I'd recommend using a relationship class instead of filtering by FeatureName. This way, you can do a featuresetbyRelationship and it will automatically filter the other table. Way easier, particularly because I think the issue is in your filter.&lt;/P&gt;&lt;P&gt;As written, I think it's looking for the actual value "@s", which isn't going to get you anything.&lt;/P&gt;&lt;P&gt;If you use a &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/manage-your-strings-quite-literally-with-arcade-1-11" target="_self"&gt;template literal&lt;/A&gt; instead, you get better results&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var s = $feature.SignName
var t = Filter(FeatureSetByName($datastore, "Signs_InOfficeReport"), 
               `SignName = '${s}'`)

if(Count(t)&amp;gt;0){
    var v = First(t)
    retDict = {"edit": [{"className": "Signs_InOfficeReport",
                         "updates": [{"objectID": v.ObjectID,
                                      "attributes": {"PriceEach": $feature.PriceEach}
                                     }]
                       }]
               }
    return retDict

}else{
    var retDict = {"edit": [{"className": "Signs_InOfficeReport",
                             "adds": [{"attributes": {"PriceEach": $feature.PriceEach, 
                                                     "SignName": s}
                                     }]
                           }]
                  }
    return retDict
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other thing I added here is the thing that actually inserts the record. There are more clever ways to construct your dictionary, but this is straightforward and lets you actually see what's going on.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 16:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1666767#M100218</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-11-18T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using attribute rules to copy attribute from one feature to another</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1669401#M100489</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;! I figured it had something to do with the filter but I was at a loss as to what it could be. I used your script with template literals and it worked like a charm! They're something I've heard of but haven't really utilized until now.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 18:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-attribute-rules-to-copy-attribute-from-one/m-p/1669401#M100489</guid>
      <dc:creator>MelissaGearman</dc:creator>
      <dc:date>2025-12-01T18:28:17Z</dc:date>
    </item>
  </channel>
</rss>

