I tried the postman.setNextRequest();
Default behaviour is you canβt.
The pre-request script is just that, it runs before the request.
SetNextRequest only determines the request to run after the current one. (It doesnβt affect the current request).
The request will always run.
However, take a look at the following links which may or may not work for you.
Stop request from sending if pre-request test fails - Help - Postman