<?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>Versioning of an Item</title><link>https://www.aras.com/community/f/development/9118/versioning-of-an-item</link><description>When a different user creates the version of the item ,the creator of the current revision remains same as the first version. In my case I want to change the creator to the person who actually created it.How to achieve it ? AnyBody?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Versioning of an Item</title><link>https://www.aras.com/community/thread/4511?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 11:40:09 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:747cafbc-35e2-4099-9207-6f7a9932787a</guid><dc:creator>NOOB</dc:creator><description>&lt;p&gt;Thanx for the response.I have resolved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Versioning of an Item</title><link>https://www.aras.com/community/thread/4442?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 14:15:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:aa6aa553-3e4c-46bd-bb5c-ae528e622308</guid><dc:creator>cogres</dc:creator><description>&lt;p&gt;Hi there,&lt;br /&gt;&lt;br /&gt;I believe a little more information about your setup and/or use case is required to help you fix this issue. &lt;br /&gt;The modified_by_id will update after a change to the item has been made, but you might get discrepancies if you are inside an onBeforeUpdate or onBeforeVersion method and try to access this information.&lt;br /&gt;&lt;br /&gt;The ItemIsNotLockedException could indicate that you are &amp;quot;apply()&amp;quot;-ing a change on an item inside a method that results in another change &amp;quot;apply()&amp;quot;-ed on that item. I would always be careful with using apply() on items within any onBefore/AfterUpdate/Version etc method, since you are unlocking the item implicitly when, for example, applying an edit-action on an item. This then leads to the exception when the update that caused the onBeforeUpdate-method to trigger tries to apply() its changes and finds an unlocked item (to which update/edit-actions cannot be applied).&lt;br /&gt;For some setups, however, you can simply set the new property on the Item in the onBeforeXxxx-method without using apply() and have your change committed to the database using the implicit apply() in the scope that the method gets called in. But, to advise anything more specific, a little more information on your setup would be required.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Versioning of an Item</title><link>https://www.aras.com/community/thread/4435?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 04:23:09 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3b5b7c32-9b3d-4ef9-b818-9208405352b2</guid><dc:creator>NOOB</dc:creator><description>&lt;p&gt;it sets the value on the form but when I try to get that property before starting the workflow manually it refers to the previous creator.and when i explicitly change it before the start of the workflow it shows me Itemisnotlocked exception but its not coming from my method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Versioning of an Item</title><link>https://www.aras.com/community/thread/4410?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 20:42:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9fcd733d-02aa-48c4-b6bd-e5bb32f140c7</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;em&gt;created_by_id&lt;/em&gt; is a system property that automatically gets set when the first version of an item is created. It&amp;#39;s also not possible to edit this property once it&amp;#39;s created.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a couple different approaches you could take instead of using the&amp;nbsp;&lt;em&gt;created_by_id&lt;/em&gt; to achieve the same result. If this is an automatically versioned item instead of a manually versioned item, you could simply label the&amp;nbsp;&lt;em&gt;modified_by_id&lt;/em&gt; property as the creator and look at that instead.&amp;nbsp;&lt;em&gt;modified_by_id&lt;/em&gt; is another system property that points to the user that made the most recent change to the item. For automatically versioned items, this should always point to the user who created that version.&lt;/p&gt;
&lt;p&gt;If this is a manually versioned item, you could instead add your own custom property like&amp;nbsp;&lt;em&gt;version_created_by&lt;/em&gt; with some custom logic in an&amp;nbsp;&lt;em&gt;onBeforeVersion&lt;/em&gt; event to set this property to the user making the change.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&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>