<?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 Updating my Current Row index of colletion in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49545#M4932</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running code stage to update the value of collection but after operation my Current index of the row of the output is getting reset to 1 of 3911, but my input collection had 2 of 3911. How to preserve the current row index value in Output Row. Please help this is something weired&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25789.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25925iA50A8FD11287BFF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="25789.png" alt="25789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajani Kant Sharma RPA Developer(Blue Prism &amp;amp; UiPath)&lt;BR /&gt;RPA Developer(Blue Prism &amp;amp; UiPath Developer)&lt;BR /&gt;TietoEVRY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 05 Jun 2023 08:13:00 GMT</pubDate>
    <dc:creator>Rajani_KantSha1</dc:creator>
    <dc:date>2023-06-05T08:13:00Z</dc:date>
    <item>
      <title>Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49545#M4932</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running code stage to update the value of collection but after operation my Current index of the row of the output is getting reset to 1 of 3911, but my input collection had 2 of 3911. How to preserve the current row index value in Output Row. Please help this is something weired&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25789.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25925iA50A8FD11287BFF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="25789.png" alt="25789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajani Kant Sharma RPA Developer(Blue Prism &amp;amp; UiPath)&lt;BR /&gt;RPA Developer(Blue Prism &amp;amp; UiPath Developer)&lt;BR /&gt;TietoEVRY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2023 08:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49545#M4932</guid>
      <dc:creator>Rajani_KantSha1</dc:creator>
      <dc:date>2023-06-05T08:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49546#M4933</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I guess you can achieve this by native collection utility. Is there a reason you are using a custom code stage here?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Loop on Input collection&lt;/LI&gt;
&lt;LI&gt;Create a counter&lt;/LI&gt;
&lt;LI&gt;Update output collection using the counter/index number using the below action&lt;span class="lia-inline-image-display-wrapper" image-alt="25774.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25906i4165C5664C5A4760/image-size/large?v=v2&amp;amp;px=999" role="button" title="25774.png" alt="25774.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Flow&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25775.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25908i8FB549F5CD05D436/image-size/large?v=v2&amp;amp;px=999" role="button" title="25775.png" alt="25775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;If I was of assistance, please vote for it to be the "Best Answer".&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. Consultant-Technical Lead&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49546#M4933</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2023-06-06T05:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49547#M4934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here I am using a loop in a collection inside that I am calling Code stage so that it can filter some value in the same collection and update the column field value in the same collection and return the same updated collection.&lt;/P&gt;
&lt;P&gt;&lt;QUILLBOT-EXTENSION-PORTAL&gt;&lt;/QUILLBOT-EXTENSION-PORTAL&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajani Kant Sharma RPA Developer(Blue Prism &amp;amp; UiPath)&lt;BR /&gt;RPA Developer(Blue Prism &amp;amp; UiPath Developer)&lt;BR /&gt;TietoEVRY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49547#M4934</guid>
      <dc:creator>Rajani_KantSha1</dc:creator>
      <dc:date>2023-06-06T05:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49548#M4935</link>
      <description>&lt;P&gt;Okay understood. In that case, also the use of the index counter and Set collection field action can be used to achieve the same.&lt;/P&gt;
&lt;P&gt;Although it will not show you row nos changing for output collection in studio UI but the values will be actually updated to the specific row only in the output collection.&lt;/P&gt;
&lt;P&gt;Please try it out once.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;If I was of assistance, please vote for it to be the "Best Answer".&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. Consultant-Technical Lead&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 06:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49548#M4935</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2023-06-06T06:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49549#M4936</link>
      <description>&lt;P&gt;No Actually my requirement is different. Thanks for the suggestion. Could you please tell me is there any way to Preserve the Active Row Index or Get/Set Active Row Index when we do something on Input Collection data and store it in Output Collection data.&lt;BR /&gt;&lt;BR /&gt;When we are doing some operation on Input Collection and store the output in Output Collection the Active Row Index is reset to always 1 which lead to infinite loop&lt;/P&gt;
&lt;P&gt;&lt;QUILLBOT-EXTENSION-PORTAL&gt;&lt;/QUILLBOT-EXTENSION-PORTAL&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajani Kant Sharma RPA Developer(Blue Prism &amp;amp; UiPath)&lt;BR /&gt;RPA Developer(Blue Prism &amp;amp; UiPath Developer)&lt;BR /&gt;TietoEVRY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 06:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49549#M4936</guid>
      <dc:creator>Rajani_KantSha1</dc:creator>
      <dc:date>2023-06-06T06:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Updating my Current Row index of colletion</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49550#M4937</link>
      <description>&lt;P&gt;You can preserve the index using a counter only. See the above workflow snapshot that I attached earlier. You need to use counter+1 within the loop and it will take care of your index.&lt;/P&gt;
&lt;P&gt;Now use the same counter as an index to update the value in the Output collection. I added a snapshot for the action that you need to use.&lt;/P&gt;
&lt;P&gt;You can check the below thread also where the same solution is mentioned.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=af26ad91-b697-46ea-bf32-7bd8658bf3b7&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer" target="test_blank"&gt;https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=af26ad91-b697-46ea-bf32-7bd8658bf3b7&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I request you to try it out using dummy data and you will understand the concept, it is very simple.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;If I was of assistance, please vote for it to be the "Best Answer".&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. Consultant-Technical Lead&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 06:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-my-Current-Row-index-of-colletion/m-p/49550#M4937</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2023-06-06T06:49:00Z</dc:date>
    </item>
  </channel>
</rss>

