<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Updating custom fields on superseded Items</title><link>https://www.aras.com/community/f/development/6036/updating-custom-fields-on-superseded-items</link><description>Hello, 
 We have a program which we run to update Export control codes on our parts, this is to obviously restrict access to comply with Export control regulations and as such is very important. 
 The issue we are having is that we can update the active</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Updating custom fields on superseded Items</title><link>https://www.aras.com/community/thread/2955?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 14:42:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b8a3f658-eb7e-44a7-b612-43e0ed9f36c3</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Rikky,&lt;/p&gt;
&lt;p&gt;The simplest way to accomplish this would be to use an&amp;nbsp;&lt;strong&gt;onBeforeAdd/&lt;/strong&gt;&lt;strong&gt;onBeforeUpdate&lt;/strong&gt; event that checks propagates the value of this Export Control Code to all previous generations of the Part. We typically don&amp;#39;t recommend using direct SQL as it bypasses the Aras permission model, but in this case, I think it might be your best option as a SQL update won&amp;#39;t run any other versioning logic. You can find all generations of a Part by searching on the&amp;nbsp;&lt;strong&gt;config_id&lt;/strong&gt; property which is common among all generations of an item.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>