List of all requests in pre-request script

Hi guys

Is it possible to get a list of all requests of the current collection in a pre-request script?

Thanks for your support

I didn’t do this in a pre-request script, but you certainly could adapt it to do so:


I used the Postman API to load the collection details then grabbed the name of all the requests.

Postman API Documentation

1 Like