How to fetch just one value from vector and pass to next scenario

I have one scenario returning a vector of Ids, out of which I want to use just one(preferably first/last id) and pass it to my next scenario. I am not able to extract it in the scenario in which I want to use it.


http(“http call”) // For making http calls. Name provided here will be used in test results


.check( bodyString.saveAs( “RESPONSE” ) )


.check( // It checks that the HTTP response has a 200 status


.exec( session =>


val test_Id = session.get(“Id”).as[Vector[String]]




On printing this id in session, it return the following:


In the other scenario, I want to use one of the ids this vector returns. I am not able to understand how to fetch the id.

Any help would be appreciated.