# Skipping REQUEST in Pre-req to move on to the next REQUEST

**URL:** <https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826>\
**Category:** Help Hub\
**Tags:** tests, variables, collections\
**Created:** [April 8, 2020, 6:19pm UTC](https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826 "2020-04-08T18:19:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysaead](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@ysaead](https://community.postman.com/u/ysaead)\
**Post date:** [April 8, 2020, 6:19pm UTC](https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826/1 "2020-04-08T18:19:07Z")

</div>

postman.setNextRequest(null);  
postman.setNextRequest(“null”);

The above code did not work for either a loop or a complete stop to the request in the pre-req.

Thank you for your help in advance!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 8, 2020, 7:27pm UTC](https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826/2 "2020-04-08T19:27:46Z")

</div>

You might need to provide more context and information to the questions, it’s a little unclear how you’re using this.

It also might help to explain your workflow.

Would you be able to add some screen shots or the full script?

---

<div class="post-metadata">

**Author:** ![SabriH](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SabriH](https://community.postman.com/u/SabriH)\
**Post date:** [April 8, 2020, 9:16pm UTC](https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826/3 "2020-04-08T21:16:45Z")

</div>

Hi @ysaead,

As Danny mentioned, it would help to get some context and information to assist you better. In the meantime, If I understand your concern correctly, I believe the following segment in the documentation may explain the behaviour you’re observing:

[https://learning.postman.com/docs/postman/collection-runs/building-workflows/#advanced-workflow](https://learning.postman.com/docs/postman/collection-runs/building-workflows/#advanced-workflow)

> `postman.setNextRequest()` is always executed at the end of the current request. This means that if you put this function before other code blocks anywhere in pre-request or test script, these blocks will still execute.

Hopefully, this helps!

---

<div class="post-metadata">

**Author:** ![ysaead](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@ysaead](https://community.postman.com/u/ysaead)\
**Post date:** [April 8, 2020, 9:33pm UTC](https://community.postman.com/t/skipping-request-in-pre-req-to-move-on-to-the-next-request/11826/4 "2020-04-08T21:33:00Z")

</div>

Thank you SabriH! I spent more than 6 hours testing with it unfortunately.
