cancel
Showing results for 
Search instead for 
Did you mean: 

Data from collection

StefanFrederiks
Level 2
Hello How do I get the last row in a collection? when there is multiple in a collection. To get the first I write this: [Result.ftuEducationPlanResponse.FtuInSchoolEducationPlan.WishList.EducationWish.JSON:Array] But what if i need the middel or last one? JSON:Array[1] or JSON:Array[2] is not working.
2 REPLIES 2

Anonymous
Not applicable
I'm running into this same issue - anyone have an answer to this?

John__Carter
Staff
Staff
In a BP expression you can't refer to a collection row using an index, you have to move to the row you want using a loop. Alternatively you could use a code stage so that you can manipulate the collection as a .Net datatable.