<?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: Remove duplicates from collection based on specific column in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82998#M34339</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are some assets available on DX which can cater to these scenarios. I haven't tried this myself but here are the links -&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/78038/solution/spgmi--utility-collection-booster" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/78038/solution/spgmi--utility-collection-booster&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/35840/solution/millicon---collection-utility" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/35840/solution/millicon---collection-utility&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Oct 2020 15:48:00 GMT</pubDate>
    <dc:creator>shashank.kumar280</dc:creator>
    <dc:date>2020-10-14T15:48:00Z</dc:date>
    <item>
      <title>Remove duplicates from collection based on specific column</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82997#M34338</link>
      <description>Hello Community,&amp;nbsp;&lt;BR /&gt;I have a collection, suppose Col1. It has 2 columns i.e. Operating System and UserId.&lt;BR /&gt;I need to filter out the rows in Col1 with its name as Linux and Mac. But before it filters both I want to remove duplicates if any.&lt;BR /&gt;Operating System UserId&amp;nbsp;&lt;BR /&gt;Mac.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&lt;BR /&gt;Mac.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&lt;BR /&gt;Linux.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 652&lt;BR /&gt;Mac.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 124&lt;BR /&gt;First thing, two seperate collections for Linux and Mac.&lt;BR /&gt;Second thing, removing duplicates based on UserId.&amp;nbsp;&lt;BR /&gt;Note:one userId can have multiple OS.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Guggs Kia&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82997#M34338</guid>
      <dc:creator>GuggsKia</dc:creator>
      <dc:date>2020-10-14T15:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove duplicates from collection based on specific column</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82998#M34339</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are some assets available on DX which can cater to these scenarios. I haven't tried this myself but here are the links -&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/78038/solution/spgmi--utility-collection-booster" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/78038/solution/spgmi--utility-collection-booster&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/35840/solution/millicon---collection-utility" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/35840/solution/millicon---collection-utility&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82998#M34339</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2020-10-14T15:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove duplicates from collection based on specific column</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82999#M34340</link>
      <description>Use the following code to remove duplicate names based on column names.&lt;BR /&gt;&lt;BR /&gt;[Inputs : coll,collName ]&lt;BR /&gt;[Output: groups ]&lt;BR /&gt;&lt;BR /&gt;Dim hTable As New Hashtable()&lt;BR /&gt;Dim duplicateList As New ArrayList()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'Add list of all the unique item value to hashtable, which stores combination of key, value pair.&lt;BR /&gt;'And add duplicate item value in arraylist.&lt;BR /&gt;&lt;BR /&gt;For Each drow_1 As DataRow In coll.Rows&lt;BR /&gt;&lt;BR /&gt;If hTable.Contains(drow_1(colName)) Then&lt;BR /&gt;&lt;BR /&gt;duplicateList.Add(drow_1)&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;hTable.Add(drow_1(colName), String.Empty)&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'Removing a list of duplicate items from datatable.&lt;BR /&gt;&lt;BR /&gt;For Each dRow_2 As DataRow In duplicateList&lt;BR /&gt;&lt;BR /&gt;coll.Rows.Remove(dRow_2)&lt;BR /&gt;&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;groups = coll&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jane Jebarson Senior Automation Engineer&lt;BR /&gt;Engineer&lt;BR /&gt;Allianz&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Oct 2020 16:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-based-on-specific-column/m-p/82999#M34340</guid>
      <dc:creator>jebarson</dc:creator>
      <dc:date>2020-10-18T16:53:00Z</dc:date>
    </item>
  </channel>
</rss>

