<?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 You could use the 'Copy Rows' in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72966#M25571</link>
    <description>You could use the 'Copy Rows' action in the 'Utility - Collection Manipulation' object to copy the rows you are interested in to another collection and loop around that.</description>
    <pubDate>Mon, 26 Sep 2016 18:59:00 GMT</pubDate>
    <dc:creator>Graeme__Tacon</dc:creator>
    <dc:date>2016-09-26T18:59:00Z</dc:date>
    <item>
      <title>Collection - Start looping from row X</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72965#M25570</link>
      <description>Lets say that I have a collection consisting of 1000 rows. I was wondering if there are any possibilities to start counting/looping from a certain row and to a certain row?

For example, lets say that I have a person register where I separate persons into groups:

Main Collection looks like this: 

Group | ID | Name
-----------------------
A         | 12sdkj2 | Peter
A | 3948sd | David
B | difu3oj | Susan
etc....

I also have a collections which keeps tracking the group name, start row, and end row. 

Group | Start Row | End Row
------------------------------------
A | 1 | 2
B | 3 | 47


Let's say that I'm looking for a certain person in group B. Is it possible for me to start looping from row 3 to 47? So I don't have to loop through the whole collection to find this person. 

Btw, I know I should use code in order to achieve this, but I'm currently experimenting the limits by staying with only actions.</description>
      <pubDate>Mon, 26 Sep 2016 17:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72965#M25570</guid>
      <dc:creator>shahariar_k_bhu</dc:creator>
      <dc:date>2016-09-26T17:30:00Z</dc:date>
    </item>
    <item>
      <title>You could use the 'Copy Rows'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72966#M25571</link>
      <description>You could use the 'Copy Rows' action in the 'Utility - Collection Manipulation' object to copy the rows you are interested in to another collection and loop around that.</description>
      <pubDate>Mon, 26 Sep 2016 18:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72966#M25571</guid>
      <dc:creator>Graeme__Tacon</dc:creator>
      <dc:date>2016-09-26T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Hmm, I didn't think of</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72967#M25572</link>
      <description>Hmm, I didn't think of copying the rows in to a new collection. Thanks for the suggestion, I'm going to try that out!</description>
      <pubDate>Mon, 26 Sep 2016 19:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72967#M25572</guid>
      <dc:creator>shahariar_k_bhu</dc:creator>
      <dc:date>2016-09-26T19:16:00Z</dc:date>
    </item>
    <item>
      <title>What you can do is just</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72968#M25573</link>
      <description>What you can do is just create a decision stage inside the main collection loop to check for the Group field. Else, skip to the next item.
Then create a Flag to check if the loop should end already to prevent the robot from looping in the whole collection.</description>
      <pubDate>Wed, 28 Sep 2016 09:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72968#M25573</guid>
      <dc:creator>Ed_PaulSantos</dc:creator>
      <dc:date>2016-09-28T09:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Collection - Start looping from row X</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72969#M25574</link>
      <description>Why do you need the second collection tracking the start and end rows? Seems like a recipe for unnecessary maintenance and potential errors. But of course, depends on the requirements and your use case may be valid. Just curious.&lt;BR /&gt;&lt;BR /&gt;Anyway, another option to those already suggested would be to filter the first collection based on the Group and then work on the result. That way you don't need to use the second tracking collection (at least not for separating out the Group you're interested in), and you don't have to loop the entire collection and test each row.&lt;BR /&gt;&lt;BR /&gt;Additionally, if you know more than just the Group then you could potentially filter the first collection directly to the person you are looking for (if you know the ID), or to a subset of potentials (if you have a partial name for example).&lt;BR /&gt;&lt;BR /&gt;Using the Collection Manipulation utility object can be a bit tricky to begin with if you're not accustomed to how the actions operate, but once you have worked out the required inputs and outputs it's pretty straight forward.&lt;BR /&gt;&lt;BR /&gt;For your example, if I set up a dummy collection to match your spec's, you can see there are nine rows across three Groups:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22244.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22383i5E38695C73801F38/image-size/large?v=v2&amp;amp;px=999" role="button" title="22244.png" alt="22244.png" /&gt;&lt;/span&gt;&lt;BR /&gt;To filter down to a particular Group, the action parameters look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22245.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22389iE9F941932B383ED1/image-size/large?v=v2&amp;amp;px=999" role="button" title="22245.png" alt="22245.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Note the format of the filter expression. The filter parameter (i.e. the [Filter Group] part) needs to be enclosed in single quote characters, when it is a text field at least:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22246.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22388iABEB1C8F26A00C74/image-size/large?v=v2&amp;amp;px=999" role="button" title="22246.png" alt="22246.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If it helps, you can think of this as being like an SQL query.&lt;BR /&gt;&lt;BR /&gt;The result from this when [Filter Group] is set to "A" is the three A group rows in the specified output collection:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22247.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22390iA901007F143DEDAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="22247.png" alt="22247.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I specified a different collection as the output parameter from the filter action, but you can actually send the result back to the same collection. Just be mindful of when and how the collection gets populated as once it's overwritten with the filter output...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you know the ID of a particular person, then simply alter the filter expression to something like "ID = '" &amp;amp; [Filter ID] &amp;amp; "'" instead&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22248.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22391i0EC9CC797089C736/image-size/large?v=v2&amp;amp;px=999" role="button" title="22248.png" alt="22248.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Or, make your filter expression more complex depending on your needs...&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22249.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22392i26A56FF081B07ECB/image-size/large?v=v2&amp;amp;px=999" role="button" title="22249.png" alt="22249.png" /&gt;&lt;/span&gt;Which results in:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22250.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22393i0F546E0B3BC4891C/image-size/large?v=v2&amp;amp;px=999" role="button" title="22250.png" alt="22250.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jared Rumball&lt;BR /&gt;Q4 Associates Ltd&lt;BR /&gt;&lt;A href="https://www.q4associates.biz/" target="test_blank"&gt;https://www.q4associates.biz/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2021 03:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Start-looping-from-row-X/m-p/72969#M25574</guid>
      <dc:creator>Jared.Rumball</dc:creator>
      <dc:date>2021-12-22T03:43:00Z</dc:date>
    </item>
  </channel>
</rss>

