<?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: Matching data from one collection to another and marking flag in collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93203#M42826</link>
    <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="ee428c3f-756e-471c-ab71-d0fe7a9ef951" data-tag-text="@Swati Agrawal" href="https://community.blueprism.com/network/profile?UserKey=ee428c3f-756e-471c-ab71-d0fe7a9ef951" data-itemmentionkey="1791b1e0-66e8-4b15-b967-268db2eee94b"&gt;@Swati Agrawal&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you need to add a column to your collection while the process is running you will need to create a new action with a new code stage to do this. I'​ve added the code below for this, as for searching through one collection and comparing with another you could try doing a nested loop and compare each row and if they match then mark it as a match. See the example below, hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Insert column in collection code: inputs - Input Collection, Column Name, Column Index (Where the column should be added e.g. 2)&lt;BR /&gt;Outputs - Output Collection&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;Output_Collection = Input_Collection.Copy&lt;BR /&gt;&lt;BR /&gt;Dim Newcol As DataColumn = New DataColumn(Column_Name, GetType(String))&lt;BR /&gt;Output_Collection.Columns.Add(Newcol)&lt;BR /&gt;Output_Collection.Columns(Newcol.ColumnName.ToString).SetOrdinal(Column_Index)&lt;BR /&gt;--------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29773.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29908i7DE877EEAEBECC96/image-size/large?v=v2&amp;amp;px=999" role="button" title="29773.png" alt="29773.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 29 Mar 2022 13:36:00 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2022-03-29T13:36:00Z</dc:date>
    <item>
      <title>Matching data from one collection to another and marking flag in collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93202#M42825</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have an output collection with certain rows and values defined like this in the "current values"-&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29780.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29911iCC496EB986598A2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="29780.png" alt="29780.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Now, I have a separate collection with Account Numbers only.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29781.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29910i6A0E96D46F2F4F86/image-size/large?v=v2&amp;amp;px=999" role="button" title="29781.png" alt="29781.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Please note: the series and count of account&amp;nbsp; numbers in second collection may not be same as first collection. However, there may be a possibility that accounts in second collection are same for few of the accounts of first collection.&lt;BR /&gt;Now my requirement is that -&amp;nbsp;&lt;BR /&gt;1. I want to add one more column in collection 1 with column name - "Doc Present" &amp;amp; Type: "Flag"&lt;BR /&gt;2. Now, I want to check if each account in collection 2 is present in collection 1 or not? and then mark as "True" or "False" in "Doc Present" column against that particular account in collection 1 basis that account was found or not.&lt;BR /&gt;&lt;BR /&gt;Looking forward to your help...&lt;BR /&gt;Thanks in advance !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Swati Agrawal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Mar 2022 11:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93202#M42825</guid>
      <dc:creator>SwatiAgrawal</dc:creator>
      <dc:date>2022-03-29T11:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Matching data from one collection to another and marking flag in collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93203#M42826</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="ee428c3f-756e-471c-ab71-d0fe7a9ef951" data-tag-text="@Swati Agrawal" href="https://community.blueprism.com/network/profile?UserKey=ee428c3f-756e-471c-ab71-d0fe7a9ef951" data-itemmentionkey="1791b1e0-66e8-4b15-b967-268db2eee94b"&gt;@Swati Agrawal&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you need to add a column to your collection while the process is running you will need to create a new action with a new code stage to do this. I'​ve added the code below for this, as for searching through one collection and comparing with another you could try doing a nested loop and compare each row and if they match then mark it as a match. See the example below, hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Insert column in collection code: inputs - Input Collection, Column Name, Column Index (Where the column should be added e.g. 2)&lt;BR /&gt;Outputs - Output Collection&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;Output_Collection = Input_Collection.Copy&lt;BR /&gt;&lt;BR /&gt;Dim Newcol As DataColumn = New DataColumn(Column_Name, GetType(String))&lt;BR /&gt;Output_Collection.Columns.Add(Newcol)&lt;BR /&gt;Output_Collection.Columns(Newcol.ColumnName.ToString).SetOrdinal(Column_Index)&lt;BR /&gt;--------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29773.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29908i7DE877EEAEBECC96/image-size/large?v=v2&amp;amp;px=999" role="button" title="29773.png" alt="29773.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93203#M42826</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-03-29T13:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Matching data from one collection to another and marking flag in collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93204#M42827</link>
      <description>Hi Swati,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can use Filter collection. it will be quick. &lt;BR /&gt;&lt;STRONG&gt;Filter collection Expression :&lt;/STRONG&gt;&amp;nbsp; "[Account No] = '" &amp;amp; [Accounts Data.Account Number] &amp;amp; "'"&lt;BR /&gt;&lt;BR /&gt;Let me know if you need any info related to filter collection.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Devendra Kumar Prajapati&lt;BR /&gt;Tech Lead&lt;BR /&gt;Infosys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2022 06:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93204#M42827</guid>
      <dc:creator>Devendra_KumarP</dc:creator>
      <dc:date>2022-03-30T06:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Matching data from one collection to another and marking flag in collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93205#M42828</link>
      <description>Use the Filter Collection as suggested by Devendra, It will save lot of time in process if collection rows are in thousands.&lt;BR /&gt;Alternatively, If collection data is present in excel documents then you can use OLE DB Utility for this scenario.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amol Jangam&lt;BR /&gt;test lead&lt;BR /&gt;infosys&lt;BR /&gt;Asia/Dili&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Matching-data-from-one-collection-to-another-and-marking-flag-in/m-p/93205#M42828</guid>
      <dc:creator>AmolJangam</dc:creator>
      <dc:date>2022-04-06T08:56:00Z</dc:date>
    </item>
  </channel>
</rss>

