<?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>REST API transfert access property without generation</title><link>https://www.aras.com/community/f/getting-started/6444/rest-api-transfert-access-property-without-generation</link><description>Hello ARAS community 
 
 We would like to change using REST the attribute Locked_by_id of an object. (typically give right to someone else to unlock/lock it. 
 Do you know if it is possible ? 
 
 we try this following the Doc but so far it doesn&amp;#39;t work</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: REST API transfert access property without generation</title><link>https://www.aras.com/community/thread/3768?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 19:10:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:518c906e-c6ad-4ca6-922c-b6dc60092675</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is not possible to block a revision for an Automatically revisioned item type.&lt;/p&gt;
&lt;p&gt;However, it would be possible to write your own versioning logic to accomplish what you&amp;#39;re looking for. You could use two custom properties named something like&amp;nbsp;&lt;em&gt;my_major_rev&lt;/em&gt; and&amp;nbsp;&lt;em&gt;my_generation&lt;/em&gt; and use an&amp;nbsp;&lt;em&gt;onBeforeUpdate&lt;/em&gt; server event to increment these values as you need to.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API transfert access property without generation</title><link>https://www.aras.com/community/thread/3750?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 15:02:04 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b860ba61-ec64-4ad5-9260-04c42ad52501</guid><dc:creator>Alexandrecimp</dc:creator><description>&lt;p&gt;Hello regardless my last comment, is it possible to bloc when we want the automatic revision for an item in discipline automatic ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API transfert access property without generation</title><link>https://www.aras.com/community/thread/3749?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 09:41:14 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:995707f1-c9bf-4cbf-bcfc-23edfe9ee419</guid><dc:creator>Alexandrecimp</dc:creator><description>&lt;p&gt;We finally decide to switch the discipline to manual.&lt;/p&gt;
&lt;p&gt;easiest way to do this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API transfert access property without generation</title><link>https://www.aras.com/community/thread/3747?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 08:27:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:29d58eef-7a09-4ae5-ab85-2310657ddb34</guid><dc:creator>Alexandrecimp</dc:creator><description>&lt;p&gt;Hello Christopher,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for your fast answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i think i have not been clear enough.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The process is as following,&lt;/p&gt;
&lt;p&gt;1/test user one works on the object id (&amp;#39;XXX&amp;#39;), he modificate and/or add elements on it.&lt;/p&gt;
&lt;p&gt;2/test user one goes to holidays&lt;/p&gt;
&lt;p&gt;at this point there is two steps possible, test user two will have to work on that object id (&amp;#39;XXX&amp;#39;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.1/ test user two dont want to continue the work initiated by test user one --&amp;gt; we just have to purge unlock the object.&lt;/p&gt;
&lt;p&gt;so test user two would be able to work on the object from scratch at the same level of revision.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.2/ test user two want to continue the work of test user one but we dont want to make evolve the generation level.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here we have a problem because if we save the work of test user one and unlock the objet id (&amp;#39;XXX&amp;#39;), the revision will increase from 1 to 2 for example. And we dont&amp;nbsp;want that for tracking documentation&amp;nbsp;reasons.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This why i wonder if it is possible to modify the attribute &amp;quot;locked_by_id&amp;quot; for an user to another without save and unlock the object ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The real question is : is it possible to modifiy that attribute with REST or is it protected&amp;nbsp;internaly ?&lt;/p&gt;
&lt;p&gt;Shall we write a method that follow an attribute on the object like &amp;quot;remove generation creation on saved&amp;quot; bool, that if it is thicked the save and unlock is done without new generation creation ? is it possible ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks you so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API transfert access property without generation</title><link>https://www.aras.com/community/thread/3744?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 17:23:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0b5cbc57-43dd-4925-bef5-f48b22fdcbd5</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;em&gt;locked_by_id&lt;/em&gt; is a system property that is typically set through use of the&amp;nbsp;&lt;em&gt;lock&lt;/em&gt; and&amp;nbsp;&lt;em&gt;unlock&lt;/em&gt; actions in an AML query.&lt;/p&gt;
&lt;p&gt;You can call these actions through REST by using a PATCH request and specifying the action you want to call inside of the body. As an example, the request below can be used to unlock a Part with a known ID.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;PATCH {base url}/Part(&amp;#39;A6C9D695E75246758824B6B858622D73&amp;#39;)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;quot;&lt;strong&gt;@aras.action&lt;/strong&gt;&amp;quot; : &amp;quot;&lt;strong&gt;unlock&lt;/strong&gt;&amp;quot;&lt;br /&gt;}&lt;/p&gt;
&lt;hr /&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>