<?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 Hi Juke.. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66155#M18760</link>
    <description>Hi Juke..
Try with Row Index = 0.
Because Row Index will starts with ""0"". I hope it will help you.</description>
    <pubDate>Wed, 20 Sep 2017 10:28:00 GMT</pubDate>
    <dc:creator>SrinivasaRaoPat</dc:creator>
    <dc:date>2017-09-20T10:28:00Z</dc:date>
    <item>
      <title>Reading Collection by index</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66145#M18750</link>
      <description>Hello team,

How can I read a specific value from a collection without using Loops?
For example I have a products collection in which it has 100 records, I want to fetch 40th Row Product name (Products[40]), based on the index or the Field name. Please advise asap.

Thanks,
Naveen</description>
      <pubDate>Mon, 18 Sep 2017 15:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66145#M18750</guid>
      <dc:creator>NawinAnkathi</dc:creator>
      <dc:date>2017-09-18T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Does ""Filter Collection"" in</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66146#M18751</link>
      <description>Does ""Filter Collection"" in ""Collection Manipulation"" Object help in what you are trying to do?
Regards,
Deep Shah</description>
      <pubDate>Mon, 18 Sep 2017 17:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66146#M18751</guid>
      <dc:creator>Deep.Shah</dc:creator>
      <dc:date>2017-09-18T17:07:00Z</dc:date>
    </item>
    <item>
      <title>Utility - Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66147#M18752</link>
      <description>Utility - Collection Manipulation
Action: Read Collection Field</description>
      <pubDate>Mon, 18 Sep 2017 17:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66147#M18752</guid>
      <dc:creator>JiriPospisil</dc:creator>
      <dc:date>2017-09-18T17:25:00Z</dc:date>
    </item>
    <item>
      <title>Thank you Deep and Jiri for</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66148#M18753</link>
      <description>Thank you Deep and Jiri for your responses.
Is there any way to directly consume a row from collection using its index or column/field name ? Ex: Products[40] or Products[""Column Name""]</description>
      <pubDate>Tue, 19 Sep 2017 09:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66148#M18753</guid>
      <dc:creator>NawinAnkathi</dc:creator>
      <dc:date>2017-09-19T09:37:00Z</dc:date>
    </item>
    <item>
      <title>Yes. You can copy rows from</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66149#M18754</link>
      <description>Yes. You can copy rows from collection by using Index of the particular row.
use VBO: Collection Manipulation
      Action: Copy Rows
In Copy Rows action you can mention Index of the row and also you can mention how many rows to copy from that index if you want.</description>
      <pubDate>Tue, 19 Sep 2017 09:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66149#M18754</guid>
      <dc:creator>SrinivasaRaoPat</dc:creator>
      <dc:date>2017-09-19T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Thanks Srinivas for your</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66150#M18755</link>
      <description>Thanks Srinivas for your response.
I am just exploring the ways of fetching data from a collection. Apart from Loops or VBO: Collection Manipulation, is there any other way to fetch the collection value using the index similar to the programming languages. CollectionName[0] or CollectionName[""FieldName""]</description>
      <pubDate>Tue, 19 Sep 2017 11:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66150#M18755</guid>
      <dc:creator>NawinAnkathi</dc:creator>
      <dc:date>2017-09-19T11:03:00Z</dc:date>
    </item>
    <item>
      <title>I think the function you're</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66151#M18756</link>
      <description>I think the function you're looking for is provided in Utility - Collection Manipulation =&amp;gt; Read Collection Field where you can provide input parameters as Collection, Field Name and Row Index. The Output is then Value Read which you can store in a variable for further actions.
But for some reason, I cannot make it work even in a simple test case. But that's likely because of me, not the object.</description>
      <pubDate>Tue, 19 Sep 2017 14:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66151#M18756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-19T14:05:00Z</dc:date>
    </item>
    <item>
      <title>If you're looking at this</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66152#M18757</link>
      <description>If you're looking at this functionality, could you help me out, please?
I created a sample collection ""cTest"" with a field ""fTest"". Then I typed a few Initial Values for fTest like vTest1, vTest2, vTest3. When I use Utility - Collection Manipulation =&amp;gt; Read Collection Field and define the Inputs as
Collection = cTest
Field Name = fTest
Row Index = 2
and Output to Data1(text),
I get an execption ""The collection does not contain a field with the name 'vTest1' ??? So, instead of reading / returning the value from the second row (=&amp;gt; vTest2) it's giving an error stating that there's no field named according to the value on the first row (vTest1).</description>
      <pubDate>Tue, 19 Sep 2017 15:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66152#M18757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-19T15:57:00Z</dc:date>
    </item>
    <item>
      <title>Hi Juke,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66153#M18758</link>
      <description>Hi Juke,
I think you might have given Field Name = cTest.fTest, that is the reason its not able to understand the Field Name..
If this is the case, give Field Name = ""fTest"" (only Field name without Collection as a prefix)..
Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66153#M18758</guid>
      <dc:creator>NawinAnkathi</dc:creator>
      <dc:date>2017-09-19T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Code Stage:</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66154#M18759</link>
      <description>Code Stage:
myOutput = myCollection.Rows.Item(Convert.ToInt32(myRowNumber)-1).Item(Convert.ToInt32(myColumnNumber)-1)
Let me know if you need me to explain more.</description>
      <pubDate>Tue, 19 Sep 2017 19:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66154#M18759</guid>
      <dc:creator>TomBlackburn1</dc:creator>
      <dc:date>2017-09-19T19:51:00Z</dc:date>
    </item>
    <item>
      <title>Hi Juke..</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66155#M18760</link>
      <description>Hi Juke..
Try with Row Index = 0.
Because Row Index will starts with ""0"". I hope it will help you.</description>
      <pubDate>Wed, 20 Sep 2017 10:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66155#M18760</guid>
      <dc:creator>SrinivasaRaoPat</dc:creator>
      <dc:date>2017-09-20T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for your comments.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66156#M18761</link>
      <description>Thank you for your comments.
I think I found at least a workaround to make it work. And this applies also to writing (Set Collection Field) as well.
Expanding my example below, let me specify more fields (ie. columns) like fTest, fTest1, fTest2, fTest3. Now, if I try to read a value from let's say (column) fTest2, row index 1, I get the error message as above, stating that a field named as the value in the first row (=index 0) in fTest2 does not exist.
Then the workaround:
In Initial values I add a row and type the field names as values like this:
(field name) fTest - fTest1 - fTest2 - fTest3
(1st row values) fTest - fTest1 - fTest2 - fTest3
And it works! Just as the error message said. Now the method can find the correct ""field name"". I tried to look at the actual code inside the method, but could not figure out why it's looking for the field name from the first (index=0) row, instead of the real field name above the data rows.</description>
      <pubDate>Thu, 21 Sep 2017 01:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-Collection-by-index/m-p/66156#M18761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T01:31:00Z</dc:date>
    </item>
  </channel>
</rss>

