<?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: Compare the collection column data with itself in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82674#M34062</link>
    <description>&lt;P&gt;Hi Andy. Do you mind marking Daniel's answer as correct, so he can get the proper credit for it? Thank you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yinka Daramola&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Mar 2024 19:18:00 GMT</pubDate>
    <dc:creator>ydar360</dc:creator>
    <dc:date>2024-03-12T19:18:00Z</dc:date>
    <item>
      <title>Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82669#M34057</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a collection with column Fruits and kid's names with 3 rows where the data into this column is random through other validations.&lt;/P&gt;
&lt;P&gt;The task is to check if the data that is there in the column has all the same fruit names or different.&lt;/P&gt;
&lt;P&gt;If there are same fruit names in fruit column then I have to send a mail saying all the kids have same fruit.&lt;/P&gt;
&lt;P&gt;If there fruit column has at least 2 same fruit names I have to send the mail saying these 2 particular kids have same fruit. And send another mail saying the third kid has different one.(2 mails)&lt;/P&gt;
&lt;P&gt;Like wise.. comes to 3 mails if all are different fruits&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How do I compare or Filter and get the data so that I know which kid have which.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andy Jacob&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 18:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82669#M34057</guid>
      <dc:creator>AndyJacob</dc:creator>
      <dc:date>2024-02-27T18:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82670#M34058</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello Andy,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;In this scenario, you can go through the main list and perform the appropriate validations using it as a base.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;In the process, create an action and select the option "Utility – Collection Manipulation" and select "Filter Collection"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23579.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23712iFE1E103629C7F537/image-size/large?v=v2&amp;amp;px=999" role="button" title="23579.png" alt="23579.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;In Entries select the Collection you want to filter. Create an expression that must be placed between Strings " " as a reference to what will be filtered and from which column.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Example: "[exemple] like '%temp%' "&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The output will be a Collection where the filtered data will be stored. For quantity validations, you can use "count rows" for this validation;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Auxiliary references:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://www.csharp-examples.net/dataview-rowfilter/" target="test_blank"&gt;https://www.csharp-examples.net/dataview-rowfilter/&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.data.datacolumn.expression?view=netframework-4.7.2" target="test_blank"&gt;https://learn.microsoft.com/en-us/dotnet/api/system.data.datacolumn.expression?view=netframework-4.7.2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---collection-manipulation" target="_blank" rel="noopener"&gt;Digital exchange - collection-manipulation - Documentation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23580.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23713i8CC97F64DCE985EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="23580.png" alt="23580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://digitalexchange.blueprism.com/dpCatalogForm/download/218aa5a0-b7fa-43ec-882e-e726e67d175b" target="_blank" rel="noopener"&gt;Digitalexchange - Example Process - Collection Manipulation - Download&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer&amp;nbsp;&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82670#M34058</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2024-02-27T20:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82671#M34059</link>
      <description>&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV data-message-author-role="assistant" data-message-id="ef8eafd4-c188-4cc4-8686-9ad8dfc12c4b" class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Hello Andy, you can achieve what you want in various ways, but I'll provide what I believe is the shortest. After all, there's no need to reinvent the wheel, right?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;What you need is use Distinct function that you can obtain through this asset in Dx (It is on my box of preferred VBO's) &lt;A href="https://digitalexchange.blueprism.com/dx/entry/35840/solution/millicon---collection-utility"&gt;millicon---collection-utility&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV data-message-author-role="assistant" data-message-id="570f0c92-8ba2-4caf-bb57-9ea979850e02" class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;With the "Distinct" action, you can obtain only the unique values of a column. Assuming that there will always be 3 rows, using the "Distinct" action will cover all scenarios that you mentioned.&lt;/P&gt;
&lt;P&gt;If the main collection has 3 different fruits, the output value of the "Distinct" action will be 3 rows.&lt;/P&gt;
&lt;P&gt;If the main collection has 3 identical fruits, the output value of the "Distinct" action will be 1 row.&lt;/P&gt;
&lt;P&gt;If the main collection has 2 watermelons and a pineapple, the output value of "Distinct" will be 2. In this scenario, you can loop through the distinct collection and use the value to filter in the main collection with "Utility - Collection Manipulation: Filter" to determine which kids have 2 fruits and which have 1.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Regards!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;If this was helpful, please mark it as the best answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Daniel Sanhueza&lt;BR /&gt;RPA Professional Developer&lt;BR /&gt;Deloitte&lt;BR /&gt;America/Santiago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82671#M34059</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2024-02-27T20:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82672#M34060</link>
      <description>&lt;P&gt;Thanks Daniel. It worked.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andy Jacob&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82672#M34060</guid>
      <dc:creator>AndyJacob</dc:creator>
      <dc:date>2024-02-28T20:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82673#M34061</link>
      <description>&lt;P&gt;Thank you Leonardo.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andy Jacob&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82673#M34061</guid>
      <dc:creator>AndyJacob</dc:creator>
      <dc:date>2024-02-28T20:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Compare the collection column data with itself</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82674#M34062</link>
      <description>&lt;P&gt;Hi Andy. Do you mind marking Daniel's answer as correct, so he can get the proper credit for it? Thank you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yinka Daramola&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-the-collection-column-data-with-itself/m-p/82674#M34062</guid>
      <dc:creator>ydar360</dc:creator>
      <dc:date>2024-03-12T19:18:00Z</dc:date>
    </item>
  </channel>
</rss>

