<?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>How to prevent certain relationships from being copied?</title><link>https://www.aras.com/community/f/development/3773/how-to-prevent-certain-relationships-from-being-copied</link><description>Hi,

when copying an Item, also the Relationships are duplicated. This is most of the time very useful (e.g. for BOM items), but sometimes I would prefer, if some Relationships wouldn&amp;#180;t be copied (e.g. Costs).

What&amp;#180;s the best way to prevent certain Relationships</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to prevent certain relationships from being copied?</title><link>https://www.aras.com/community/thread/1766?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 07:12:15 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d8435f73-feec-4aab-a737-e94e46eab8de</guid><dc:creator>AngelaIp</dc:creator><description>Hi Chris,

Thanks for your feedback! This is not an high-priority issue, but it&amp;#39;s always good to know about the possibilities.

I think for the moment I will solve the problem like a real PLM admin: &amp;quot;You released the Part and forgot to check the relationships? You are welcome to start a change process!&amp;quot;. Problem solved.

Angela&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent certain relationships from being copied?</title><link>https://www.aras.com/community/thread/1764?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 09:47:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:dd417051-9c34-4802-ba7a-450732784f4a</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi Angela,

You&amp;#39;re correct that using Option 1 will prevent all of the relationships on an item from being copied. Option 2 is also not ideal because it runs two separate server calls: one to run the copy and another one to clean up the relationships. The &lt;strong&gt;Save As&lt;/strong&gt; action that is run to copy an item uses the AML action &lt;strong&gt;copyAsNew&lt;/strong&gt; behind the scenes. To the best of my knowledge, this action doesn&amp;#39;t support additional arguments in order to limit which relationships are copied.

I am not aware of any OOTB functionality that supports this exact requirement. The best option to contain all of this logic in one server call would be to create a custom method, but I don&amp;#39;t have any sample code to share for coyping an item this.

Chris

&lt;hr /&gt;

Christopher GIllis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>