# setNextRequest() question

**URL:** <https://community.postman.com/t/setnextrequest-question/665>\
**Category:** Help Hub\
**Created:** [January 11, 2018, 3:54pm UTC](https://community.postman.com/t/setnextrequest-question/665 "2018-01-11T15:54:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhoyt](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dhoyt/32/238_2.png) [@dhoyt](https://community.postman.com/u/dhoyt)\
**Post date:** [January 11, 2018, 3:54pm UTC](https://community.postman.com/t/setnextrequest-question/665/1 "2018-01-11T15:54:47Z")

</div>

postman.setNextRequest(“Final Step”);

What happens if “Final Step” is not within the collection ?

Does execution stop here or does it continue to the next step (collection) ?

---

<div class="post-metadata">

**Author:** ![kunagpal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunagpal/32/9_2.png) [@kunagpal](https://community.postman.com/u/kunagpal)\
**Post date:** [January 11, 2018, 4:14pm UTC](https://community.postman.com/t/setnextrequest-question/665/2 "2018-01-11T16:14:07Z")

</div>

In this case, the collection run will stop without errors. This is equivalent to `postman.setNextRequest(null);`

---

<div class="post-metadata">

**Author:** ![dhoyt](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dhoyt/32/238_2.png) [@dhoyt](https://community.postman.com/u/dhoyt)\
**Post date:** [January 11, 2018, 4:19pm UTC](https://community.postman.com/t/setnextrequest-question/665/3 "2018-01-11T16:19:33Z")

</div>

Thanks for the quick response !
