Loop through values from GET to next PUT request

Please look through the example again.

The setNextRequest does not go in the pre-request script.

Here is another example.

Send multiple get request and then a single post request - Help - Postman