Read Json Text and loop through records
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-01-18 10:22 AM
Hello team,
I have converted a Json string to collection using Json VBO. I am unable to loop through the records present inside the collection, I just see row1 of 1.
Can you please give me the sample code to loop through the collection.
Thanks
4 REPLIES 4
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-01-18 11:24 AM
Hey Nawin,
there is no code required for looping through a collection..use loop stage and specify the target collection. if your collection is having only one record it will loop only once.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-01-18 04:00 PM
Using collections is covered in chapter 3 of the Foundation Training course. If you anyone out there is using the Blue Prism product without completing all the mandatory training that is part of the Accreditation training path - I would put your entire project at a red RAG status.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-04-18 05:39 AM
Hey Guys,
I believe nawin was meaning to ask how to access the data in the collection after using the JSON to Collection action. I'm having the same issue:
Row 1 of 1
Row 1 of 1
Row 1 of 1
...
Please share your knowledge if you understand the issue and know the solution.
Denis - Your condescending comments are of no value to the community.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-04-18 12:43 PM
I think what you can do is use Append rows to collection.
Example below:
Row 1 of 1
Row 1 of 1
assuming that you have the data inside result collection. and inside Row 1 you have a fix column name ""Data""
So what you can do is use append rows to a collection.
Main Collection = would be a collection to where you would like to put the data.
Collection to Append would be like this [result.data] it will put the data to a new collection as long as the column name is fix.
