- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-10-19 10:22 AM
We have a process that returns a JSON response, without any problems. The response consists of an itinerary for public transport, ie. take bus number 84 to the train station, and take the train to the next train station.
The parameters (Triplist, Trip and Leg) are defined in the Web API - the first two collections are returned fine to the process, but the last parameter Leg is always empty, although the raw text response contains a value
Is it a limit in Blue Prism that collection can not be in a collection, in a collection?
When I open the Trip collection, the values look like this:
------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------
Answered! Go to Answer.
Helpful Answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-10-19 10:04 AM
Create empty collection Leg_all
Loop TripList(
Loop TripList.Trip(
Merge rows (TripList.Trip.Leg into Leg_all)
)
)
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-10-19 11:29 AM
Json example would help. Could web api limitation.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-10-19 11:38 AM
I quick example of the output is here:
{
Could it be due to the fact that Blue Prism sees more than one Leg collection in the Trip collection as shown in the second screenshot?
------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-10-19 12:45 PM
I didn't get to use Web api properly so far, because it had some issues with proxy authentification when I tested it and our prod is still 6.2.1 (blueprism cant fix their log migration scripts). It could be a nice feature for new users, but HttpWebRequests + json/xml parsing are more flexible in the end and I'm not sure we are going to migrate old stuff to web api anyway.
Abstractions are nice until they are getting in the way. As an example, issues 6000 queries to database, doing some checks on them and combining to a single collection is about 10 times faster in a code stage compared to 'blueprism way'. Collection manipulations and calculations are slow.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-10-19 09:10 AM
https://portal.blueprism.com/system/files/documents/v6.4%20User%20Guide%20-%20Web%20APIs_2.pdf
page 25/26
So you can extract the output
------------------------------
Cemile Demirci
Robotics Proces Developer
Alliander
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-10-19 09:59 AM
Similar inconsistency exists in json vbo - if you serialize and deserialize nested collection (several times for extra effect), you get different result. I had to fix it as it was annoying.
@NickiKristensen $.TripList.Trip..Leg should work with your example, but only until you have two+ trips/legs.
You can still use a parent TripList to get all the data.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-10-19 12:51 PM
Hi @AndreyKudinov - I tried your tip with $.TripList.Trip..Leg, but as you say, I'm limited to 2+ legs.
I get the data from the TripList, but how would I extract the data "manually", ie. get the Leg-data into a collection?
------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-10-19 10:04 AM
Create empty collection Leg_all
Loop TripList(
Loop TripList.Trip(
Merge rows (TripList.Trip.Leg into Leg_all)
)
)
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
17-10-19 11:31 AM
------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------
