Running Collection of requests based on a set of data variable values

I am looking to run a collection of 5 requests based on a data variable (Function) from my csv data file. I want Request 1 to be run when Function = “Function 1” and Request 2 when Function = “Function 2” and so on and so forth

Is there a way to realise this using pre-req scripts?

Hi @sandeepmohan81,

Welcome to the Postman community ! You can build request workflows based on conditionals using postman.setNextRequest() in the pre-request scripts as explained here: postman.setNextRequest() ignore other requests in collections

1 Like