<?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 determine if an insert of a feature is the result of a paste or of a create in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1642198#M1863</link>
    <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;I am new to writing attribute rules in Pro (but not new to the concept), and I am using 3.5.2. In designing a rule to run on an insert trigger, it would be helpful to know if that insert was triggered from pasting a feature versus creating a new feature. Is that information available to me in something like $editcontext? I know that the rule 'knows' that it is a paste or create (via error message - see below), but I do not how to access that information in the rule itself (if that is possible).&lt;/P&gt;&lt;P&gt;I spun up a simple attribute rule that just returns a couple of $field.&amp;lt;field name&amp;gt; values via of an error message to illustrate. When I attempt to create a feature, the error message shows that I was (attempting to) create a new feature:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnHansen_0-1755213277535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138606i60DBADBEFF9B4FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnHansen_0-1755213277535.png" alt="JohnHansen_0-1755213277535.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JohnHansen_0-1755213277535.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I attempt to paste a copied feature, the error message shows this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnHansen_1-1755213354468.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138607i27A7F56408707AA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnHansen_1-1755213354468.png" alt="JohnHansen_1-1755213354468.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JohnHansen_1-1755213354468.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to suss out that distinction in the rule itself? If so, I would be able to follow a different logic path depending on what was happening.&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 23:24:17 GMT</pubDate>
    <dc:creator>JohnHansen</dc:creator>
    <dc:date>2025-08-14T23:24:17Z</dc:date>
    <item>
      <title>determine if an insert of a feature is the result of a paste or of a create</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1642198#M1863</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;I am new to writing attribute rules in Pro (but not new to the concept), and I am using 3.5.2. In designing a rule to run on an insert trigger, it would be helpful to know if that insert was triggered from pasting a feature versus creating a new feature. Is that information available to me in something like $editcontext? I know that the rule 'knows' that it is a paste or create (via error message - see below), but I do not how to access that information in the rule itself (if that is possible).&lt;/P&gt;&lt;P&gt;I spun up a simple attribute rule that just returns a couple of $field.&amp;lt;field name&amp;gt; values via of an error message to illustrate. When I attempt to create a feature, the error message shows that I was (attempting to) create a new feature:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnHansen_0-1755213277535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138606i60DBADBEFF9B4FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnHansen_0-1755213277535.png" alt="JohnHansen_0-1755213277535.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JohnHansen_0-1755213277535.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I attempt to paste a copied feature, the error message shows this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnHansen_1-1755213354468.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138607i27A7F56408707AA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnHansen_1-1755213354468.png" alt="JohnHansen_1-1755213354468.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JohnHansen_1-1755213354468.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to suss out that distinction in the rule itself? If so, I would be able to follow a different logic path depending on what was happening.&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 23:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1642198#M1863</guid>
      <dc:creator>JohnHansen</dc:creator>
      <dc:date>2025-08-14T23:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: determine if an insert of a feature is the result of a paste or of a create</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1642287#M1864</link>
      <description>&lt;P&gt;There is no way to detect this in the attribute rule.&amp;nbsp; The only context you have is that it is an insert.&amp;nbsp; You might be able to kind of figure it out by looking at the attributes.&amp;nbsp; &amp;nbsp;Such as you know you have a ID field, that is only populated on insert.&amp;nbsp; If a new record has this value, it was probably copy and pasted.&amp;nbsp; Just make sure the rule to set the value on insert is fired after this rule that evaluates if the feature was a new vs copy/paste.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 11:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1642287#M1864</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2025-08-15T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: determine if an insert of a feature is the result of a paste or of a create</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1644286#M1865</link>
      <description>&lt;P&gt;Thanks for the confirmation, Mike.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 14:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/determine-if-an-insert-of-a-feature-is-the-result/m-p/1644286#M1865</guid>
      <dc:creator>JohnHansen</dc:creator>
      <dc:date>2025-08-21T14:50:33Z</dc:date>
    </item>
  </channel>
</rss>

