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.

.exec(

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

.body(StringBody(Payloads.data))

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

.check(jsonPath("$.node.id").ofType[String].findAll.saveAs(“Id”))

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

)

.exec( session =>

{

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

println(test_Id)

session

})

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

Vector(dlZGQ4YQxxx)

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.

Thanks