<?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>Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/f/development/36619/deleting-part-bom-relationships-on-parts</link><description>Hi, 
 I`m currently trying to develop a function that easily deletes all Part BOM lines of a specific type (in our configuration &amp;quot;Purchased Parts&amp;quot;). All assebly parts should be left alone since in my next part of development my plan is to run the method</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6951?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 06:05:36 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a87ecb87-bbc5-450f-8ce6-56997452cbdc</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi BerntOve,&lt;/p&gt;
&lt;p&gt;When the Part BOM is deleted from UI, then it has the context item and able to get the source ID but when we are deleting through action we don&amp;#39;t have the source id information and only we have the ID of the Part BOM. so, using that we are fetching the source ID and passing that as input.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6950?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 05:31:14 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:de1f19dc-b0cb-4053-b9f4-9cb191561f60</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;workd now. Thanks, but not sure why modifying this part fixed the error.&lt;/p&gt;
&lt;p&gt;Bernt Ove&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6947?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 13:11:06 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0cc586b6-ffca-4e95-83c2-781b5da8ea85</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi BerntOve&lt;/p&gt;
&lt;p&gt;Can you update the onBeforeDelete Event with below code. Modifications are highlighted in bold&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Innovator inn=this.getInnovator();&lt;br /&gt;String VesselId=&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;//Set Vessel id based on which relationship is being updated.&lt;/p&gt;
&lt;p&gt;switch(this.getType())&lt;br /&gt;{&lt;br /&gt;case &amp;quot;VE_Vessel_System&amp;quot;:&lt;br /&gt;VesselId= (this.getAction().Equals(&amp;quot;delete&amp;quot;))?&amp;quot;&amp;quot;:this.getProperty(&amp;quot;source_id&amp;quot;);&lt;br /&gt;break;&lt;br /&gt;case &amp;quot;Part BOM&amp;quot;:&lt;br /&gt;&lt;strong&gt;Item getBOMInfo = inn.newItem(&amp;quot;Part BOM&amp;quot;,&amp;quot;get&amp;quot;);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;getBOMInfo.setID(this.getID());&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;getBOMInfo.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;source_id&amp;quot;);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;getBOMInfo = getBOMInfo.apply();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Item SourcePart=inn.newItem(&amp;quot;Part&amp;quot;,&amp;quot;get&amp;quot;);&lt;br /&gt;SourcePart.setID(&lt;strong&gt;getBOMInfo.&lt;/strong&gt;getProperty(&amp;quot;source_id&amp;quot;));&lt;br /&gt;SourcePart.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;classification,ve_vessel&amp;quot;);&lt;br /&gt;SourcePart=SourcePart.apply();&lt;br /&gt;if(SourcePart.getProperty(&amp;quot;classification&amp;quot;,&amp;quot;&amp;quot;).Equals(&amp;quot;SYSTEM&amp;quot;))&lt;br /&gt;VesselId=(this.getAction().Equals(&amp;quot;delete&amp;quot;))?&amp;quot;&amp;quot;:SourcePart.getProperty(&amp;quot;ve_vessel&amp;quot;,&amp;quot;&amp;quot;);&lt;br /&gt;else&lt;br /&gt;VesselId=&amp;quot;&amp;quot;;&lt;br /&gt;break;&lt;br /&gt;default:&lt;br /&gt;VesselId=&amp;quot;&amp;quot;;&lt;br /&gt;break;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;if(VesselId.Equals(&amp;quot;&amp;quot;) &amp;amp;&amp;amp; this.getAction().Equals(&amp;quot;add&amp;quot;))&lt;br /&gt;return this;&lt;/p&gt;
&lt;p&gt;//Call Procedure to set Vessel Property through out hte structure.&lt;br /&gt;Item ProcedureCall = this.getInnovator().newItem(&amp;quot;SQL&amp;quot;, &amp;quot;SQL PROCESS&amp;quot;);&lt;br /&gt;ProcedureCall.setProperty(&amp;quot;name&amp;quot;, &amp;quot;VE_SetVesselProperty&amp;quot;);&lt;br /&gt;ProcedureCall.setProperty(&amp;quot;PROCESS&amp;quot;, &amp;quot;CALL&amp;quot;);&lt;br /&gt;ProcedureCall.setProperty(&amp;quot;ARG1&amp;quot;, this.getProperty(&amp;quot;source_id&amp;quot;));&lt;br /&gt;ProcedureCall.setProperty(&amp;quot;ARG2&amp;quot;,VesselId);&lt;/p&gt;
&lt;p&gt;return ProcedureCall.apply();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Gopikrishnan R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6946?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 12:41:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9ac0457c-98ed-4e43-b2d7-54f2d4a0964d</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is the method run on the onBeforeDelete event: Its used to ser/delete some properties on specific parts and is used as a server event on two different relationship itemTypes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Innovator inn=this.getInnovator();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;String VesselId=&amp;quot;&amp;quot;;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;//Set Vessel id based on which relationship is being updated.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;switch(this.getType())&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; case &amp;quot;VE_Vessel_System&amp;quot;:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; VesselId= (this.getAction().Equals(&amp;quot;delete&amp;quot;))?&amp;quot;&amp;quot;:this.getProperty(&amp;quot;source_id&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; break;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; case &amp;quot;Part BOM&amp;quot;:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Item SourcePart=inn.newItem(&amp;quot;Part&amp;quot;,&amp;quot;get&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; SourcePart.setID(this.getProperty(&amp;quot;source_id&amp;quot;));&lt;/em&gt;&lt;br /&gt;&lt;em&gt; SourcePart.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;classification,ve_vessel&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; SourcePart=SourcePart.apply();&lt;/em&gt;&lt;br /&gt;&lt;em&gt; if(SourcePart.getProperty(&amp;quot;classification&amp;quot;,&amp;quot;&amp;quot;).Equals(&amp;quot;SYSTEM&amp;quot;))&lt;/em&gt;&lt;br /&gt;&lt;em&gt; VesselId=(this.getAction().Equals(&amp;quot;delete&amp;quot;))?&amp;quot;&amp;quot;:SourcePart.getProperty(&amp;quot;ve_vessel&amp;quot;,&amp;quot;&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; else&lt;/em&gt;&lt;br /&gt;&lt;em&gt; VesselId=&amp;quot;&amp;quot;;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; break;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; default:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; VesselId=&amp;quot;&amp;quot;;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; break;&lt;/em&gt;&lt;br /&gt; &lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if(VesselId.Equals(&amp;quot;&amp;quot;) &amp;amp;&amp;amp; this.getAction().Equals(&amp;quot;add&amp;quot;))&lt;/em&gt;&lt;br /&gt;&lt;em&gt; return this;&lt;/em&gt;&lt;br /&gt; &lt;br /&gt;&lt;em&gt;//Call Procedure to set Vessel Property through out hte structure.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Item ProcedureCall = this.getInnovator().newItem(&amp;quot;SQL&amp;quot;, &amp;quot;SQL PROCESS&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ProcedureCall.setProperty(&amp;quot;name&amp;quot;, &amp;quot;VE_SetVesselProperty&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ProcedureCall.setProperty(&amp;quot;PROCESS&amp;quot;, &amp;quot;CALL&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ProcedureCall.setProperty(&amp;quot;ARG1&amp;quot;, this.getProperty(&amp;quot;source_id&amp;quot;));&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ProcedureCall.setProperty(&amp;quot;ARG2&amp;quot;,VesselId);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;return ProcedureCall.apply();&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6944?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 12:17:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a7fa6343-7e11-40b9-8d81-1df8ac998291</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi BerntOve&lt;/p&gt;
&lt;p&gt;You can share the onBeforeDelete event here if possible to check where it causing the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6943?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 08:40:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:41055499-0ac4-4732-bd09-2558f5eacb09</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi Gopikrishnan,&lt;/p&gt;
&lt;p&gt;seems that the serverEvent=0 attributte only works with the action get, update, and edit. So i need to think again about the solution since in some cases the OnBeforeDelete server event is needed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bernt Ove&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6936?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:46:00 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6c1046dd-19f7-452c-ba08-28faf5785c3e</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Glad to hear&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6935?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:42:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a4a3b426-601f-48c0-aa02-ed7d2f5b142c</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for the help. Disabling the OnBeforeDelete event and your code run as expected.&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bernt Ove&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6934?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:30:47 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:5eae9359-001f-4ac0-906c-be3a9837cb42</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Alternate, if you feel like the onBeforeDelete method is not required to be executed then you can trying updating the part BOM delete method with below line. Add the highlighted line in your method&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;br /&gt;Item PartBOM_Relationship = inn.newItem(&amp;quot;Part BOM&amp;quot;, &amp;quot;get&amp;quot;);&lt;br /&gt;Item BOM_Part = inn.newItem(&amp;quot;Part&amp;quot;, &amp;quot;get&amp;quot;);&lt;br /&gt;PartBOM_Relationship.setProperty(&amp;quot;source_id&amp;quot;, this.getID());&lt;br /&gt;PartBOM_Relationship.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);&lt;br /&gt;BOM_Part.setProperty(&amp;quot;ve_classification_display&amp;quot;, &amp;quot;PURCHASED PART&amp;quot;);&lt;br /&gt;BOM_Part.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);&lt;br /&gt;PartBOM_Relationship.setRelatedItem(BOM_Part);&lt;br /&gt;PartBOM_Relationship = PartBOM_Relationship.apply();&lt;br /&gt;List&amp;lt;String&amp;gt; idLists = new List&amp;lt;String&amp;gt;();&lt;br /&gt;for (int i = 0; i&amp;lt; PartBOM_Relationship.getItemCount(); i++)&lt;br /&gt;{&lt;br /&gt;idLists.Add(PartBOM_Relationship.getItemByIndex(i).getID());&lt;br /&gt;}&lt;br /&gt;if(idLists.Any())&lt;br /&gt;{&lt;br /&gt;Item PartBOM_Delete = inn.newItem(&amp;quot;Part BOM&amp;quot;, &amp;quot;delete&amp;quot;);&lt;br /&gt;PartBOM_Delete.setAttribute(&amp;quot;idlist&amp;quot;, String.Join(&amp;quot;,&amp;quot;, idLists));&lt;br /&gt;&lt;strong&gt;PartBOM_Delete.setAttribute(&amp;quot;serverEvents&amp;quot;,&amp;quot;0&amp;quot;);&lt;/strong&gt;&lt;br /&gt;PartBOM_Delete = PartBOM_Delete.apply();&lt;br /&gt;if(PartBOM_Delete.isError())&lt;br /&gt;{&lt;br /&gt;return inn.newError(&amp;quot;Error Deleting the Part BOM relationship&amp;quot;);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return this;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6933?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:28:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:957a17dd-6e7e-4b1f-bd9c-f3c8d89a06b6</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Then that method is causing some issue. for time being can you try to remove that event (change from onBeforeDelete to empty) and try running this action&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6932?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:26:52 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ed051f90-a383-42ce-a132-9a9ca1202424</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, there is a OnBeforeDelete server event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6931?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:22:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:708526d3-6e14-483b-8d58-c6d3cf4ebc97</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you check in the Part BOM item type any method is triggered in Server Events tab On After Delete / On Before Delete events ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6930?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:19:46 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8f77b550-c041-47a3-844f-5014a8203dd9</guid><dc:creator>Bernt Ove Sunde</dc:creator><description>&lt;p&gt;Hi Gopikrishnan,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. Unfortunately I`m not able to delete the Part BOM relationship item as in your example. I get the nice error &amp;quot;Not a single item&amp;quot; as the error message. Even if i expose the Part BOM itemtype in Innovator TOC and try to delete it form there i get the same message. Its a bit strange since i am an administrator and the item permission states uses the source access&amp;nbsp;that states i should be able to detele the item.&lt;/p&gt;
&lt;p&gt;When i manually remove a Part BOM item for a Part i see that the Part BOM relationship exists still on the previsous generation of the part. The Part ItemType is of course under revision control and its possible that in my case blocks me from deleting them.&lt;/p&gt;
&lt;p&gt;I have also tried deleting the relationship item from AML studio as the Innovator Admin and its still the same.&lt;/p&gt;
&lt;p&gt;Bernt Ove&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting Part BOM relationships on Parts</title><link>https://www.aras.com/community/thread/6929?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:00:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1f07b9d5-7204-4768-a553-47037bbe72b2</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi BerntOve&lt;/p&gt;
&lt;p&gt;You can use below method to delete the Part BOM with classification &amp;quot;Purchased Part&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Innovator inn = this.getInnovator();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Item PartBOM_Relationship = inn.newItem(&amp;quot;Part BOM&amp;quot;, &amp;quot;get&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Item BOM_Part = inn.newItem(&amp;quot;Part&amp;quot;, &amp;quot;get&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;PartBOM_Relationship.setProperty(&amp;quot;source_id&amp;quot;, this.getID());&lt;/em&gt;&lt;br /&gt;&lt;em&gt;PartBOM_Relationship.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;BOM_Part.setProperty(&amp;quot;ve_classification_display&amp;quot;, &amp;quot;PURCHASED PART&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;BOM_Part.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;PartBOM_Relationship.setRelatedItem(BOM_Part);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;PartBOM_Relationship = PartBOM_Relationship.apply();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;List&amp;lt;String&amp;gt; idLists = new List&amp;lt;String&amp;gt;();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;for (int i = 0; i&amp;lt; PartBOM_Relationship.getItemCount(); i++) &lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; idLists.Add(PartBOM_Relationship.getItemByIndex(i).getID());&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;if(idLists.Any())&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Item PartBOM_Delete = inn.newItem(&amp;quot;Part BOM&amp;quot;, &amp;quot;delete&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; PartBOM_Delete.setAttribute(&amp;quot;idlist&amp;quot;, String.Join(&amp;quot;,&amp;quot;, idLists));&lt;/em&gt;&lt;br /&gt;&lt;em&gt; PartBOM_Delete = PartBOM_Delete.apply();&lt;/em&gt;&lt;br /&gt;&lt;em&gt; if(PartBOM_Delete.isError())&lt;/em&gt;&lt;br /&gt;&lt;em&gt; {&lt;/em&gt;&lt;br /&gt;&lt;em&gt; return inn.newError(&amp;quot;Error Deleting the Part BOM relationship&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; }&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;return this;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Gopikrishnan R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>