<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get difference btw two collections - using code stage in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96662#M44855</link>
    <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="bd832421-dca9-4aca-bcd0-caa9d3b42e53" data-tag-text="@Murali Krishna" href="https://community.blueprism.com/network/profile?UserKey=bd832421-dca9-4aca-bcd0-caa9d3b42e53" data-itemmentionkey="ce897cb3-f7c4-4600-acd2-468721c2215a"&gt;@Murali Krishna&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You can accomplish this using Linq and the &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.except?view=netframework-4.7.2" target="_blank" rel="noopener"&gt;Enumerable.Except()&lt;/A&gt; method. Here's an example Code stage based on the &lt;A href="https://geeksarray.com/blog/datatable-comparison-using-linq-except-intersect-and-union" target="_blank" rel="noopener"&gt;this&lt;/A&gt; example:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;NoMatchRecords = coll1.AsEnumerable().Except(
        coll2.AsEnumerable(), DataRowComparer.Default).
            CopyToDataTable();
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;
​And here are screenshots of the properties of the Code stage:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35113.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35179iE469AC7402FE4188/image-size/large?v=v2&amp;amp;px=999" role="button" title="35113.png" alt="35113.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35114.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35178i0791321194B393C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="35114.png" alt="35114.png" /&gt;&lt;/span&gt;&lt;BR /&gt;You will need to references to the following DLLs:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;System.Data.DataSetExtensions.dll&lt;/LI&gt;
&lt;LI&gt;System.Core.dll&lt;/LI&gt;
&lt;/UL&gt;
You'll also need to add the following Namespace:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;System.Linq&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 11 Nov 2022 18:26:42 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-11-11T18:26:42Z</dc:date>
    <item>
      <title>Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96661#M44854</link>
      <description>i need to get the new collection from collection one and collection two. collection one and collection two have same columns, new collection should contain only the values that are present in the collection one but not in the collection two. if A, B are two sets i need to get the value of A-B = &lt;SPAN&gt;A⋂B&lt;BR /&gt;&lt;BR /&gt;I need to perform this action using code stage not with the loops(input data is large so using loops will consume more time).&lt;BR /&gt;&lt;BR /&gt;we can say as left semi join or left anti join.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/SPAN&gt;</description>
      <pubDate>Fri, 11 Nov 2022 10:59:47 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96661#M44854</guid>
      <dc:creator>20MuraliKrishna</dc:creator>
      <dc:date>2022-11-11T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96662#M44855</link>
      <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="bd832421-dca9-4aca-bcd0-caa9d3b42e53" data-tag-text="@Murali Krishna" href="https://community.blueprism.com/network/profile?UserKey=bd832421-dca9-4aca-bcd0-caa9d3b42e53" data-itemmentionkey="ce897cb3-f7c4-4600-acd2-468721c2215a"&gt;@Murali Krishna&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You can accomplish this using Linq and the &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.except?view=netframework-4.7.2" target="_blank" rel="noopener"&gt;Enumerable.Except()&lt;/A&gt; method. Here's an example Code stage based on the &lt;A href="https://geeksarray.com/blog/datatable-comparison-using-linq-except-intersect-and-union" target="_blank" rel="noopener"&gt;this&lt;/A&gt; example:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;NoMatchRecords = coll1.AsEnumerable().Except(
        coll2.AsEnumerable(), DataRowComparer.Default).
            CopyToDataTable();
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;
​And here are screenshots of the properties of the Code stage:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35113.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35179iE469AC7402FE4188/image-size/large?v=v2&amp;amp;px=999" role="button" title="35113.png" alt="35113.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35114.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35178i0791321194B393C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="35114.png" alt="35114.png" /&gt;&lt;/span&gt;&lt;BR /&gt;You will need to references to the following DLLs:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;System.Data.DataSetExtensions.dll&lt;/LI&gt;
&lt;LI&gt;System.Core.dll&lt;/LI&gt;
&lt;/UL&gt;
You'll also need to add the following Namespace:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;System.Linq&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:26:42 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96662#M44855</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-11-11T18:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96663#M44856</link>
      <description>FYI - We've taken the functionality I mentioned in my previous post and added it as an action on the &lt;STRONG&gt;Utility - Collection Manipulation&lt;/STRONG&gt; VBO available on the Digital Exchange.​ The specific action is called &lt;STRONG&gt;Get Unmatched Records&lt;/STRONG&gt;. You can find the latest VBO at the following link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---collection-manipulation" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---collection-manipulation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 11 Nov 2022 21:55:27 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/96663#M44856</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-11-11T21:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110898#M49969</link>
      <description>&lt;P&gt;Hi Ewilson,&lt;/P&gt;&lt;P&gt;Based on this VBO, it extracts differences but does not highlight the text, which is different from the main collection.&lt;/P&gt;&lt;P&gt;After using this VBO, the collection results&amp;nbsp; stored in New Excel sheet but the problem is we could not find it out what is the difference.&lt;/P&gt;&lt;P&gt;Please help me to resolve this issue&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabitha N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 05:53:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110898#M49969</guid>
      <dc:creator>SabithaNirmal</dc:creator>
      <dc:date>2024-05-27T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110902#M49972</link>
      <description>&lt;P&gt;Paste collection details into MS Excel, and use excel formula's to find the difference is there or not.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 07:33:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110902#M49972</guid>
      <dc:creator>ShahabeelSulaiman</dc:creator>
      <dc:date>2024-05-27T07:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference btw two collections - using code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110907#M49976</link>
      <description>&lt;P&gt;Thanks for your quick response, Please find the below my flow chart&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SabithaNirmal_0-1716796728830.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38337iBB8AC0FAD5E6021D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SabithaNirmal_0-1716796728830.png" alt="SabithaNirmal_0-1716796728830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;collection of unmatched record automatically created in collection and the i stored the collection value to New work book , If i open work book&amp;nbsp; it will show the difference but still need to find out, That New Unmatched VBO not highlighting the text from Main Collection.&lt;/P&gt;&lt;P&gt;This one i want to achieve using Blue prism only.&lt;/P&gt;&lt;P&gt;Please provide more detail to resolve this&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;Sabitha N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 08:04:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-difference-btw-two-collections-using-code-stage/m-p/110907#M49976</guid>
      <dc:creator>SabithaNirmal</dc:creator>
      <dc:date>2024-05-27T08:04:54Z</dc:date>
    </item>
  </channel>
</rss>

