# How do i skip one request from collection

**URL:** <https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541>\
**Category:** Help Hub\
**Created:** [December 8, 2018, 1:41am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541 "2018-12-08T01:41:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![munnira](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@munnira](https://community.postman.com/u/munnira)\
**Post date:** [December 8, 2018, 1:41am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541/1 "2018-12-08T01:41:39Z")

</div>

Lets say i have 5 requests in collection and i wanted to skip 2 requests while running.How do i do that?

---

<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:** [December 9, 2018, 8:27am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541/2 "2018-12-09T08:27:05Z")

</div>

You could use `postman. setNextRequest('request_name')` in the last request you want to run, to jump over the ones you want to skip.

---

<div class="post-metadata">

**Author:** ![postman-paul540](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/postman-paul540/32/149_2.png) [@postman-paul540](https://community.postman.com/u/postman-paul540)\
**Post date:** [December 10, 2018, 8:24am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541/3 "2018-12-10T08:24:20Z")

</div>

[https://learning.getpostman.com/docs/postman/collection\_runs/building\_workflows/](https://learning.getpostman.com/docs/postman/collection_runs/building_workflows/)

As Danny said, use `postman.setNextRequest("request_name")` to skip or jump to a certain request.

Bear in mind, if you have multiple requests with the same name Postman will jump to the last match.

Also be mindful of using this command during a collection run and if you have any requests with the same name in sub-folders etc.

---

<div class="post-metadata">

**Author:** ![binitnyt](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@binitnyt](https://community.postman.com/u/binitnyt)\
**Post date:** [July 11, 2020, 12:45am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541/4 "2020-07-11T00:45:53Z")

</div>

I have to have request ‘A’ as 1st request, which is different compare to rest of the request. I need to skip the 1st request ‘A’ from collection level test script. Otherwise it will fail the and not run the remaining test.

1. PUT request (set some thing for givin user, and needs to be skip from collection level Test script)  
2,3,4 … remaining are GET request (collection level Test script validate the json response).

Rule is 1st PUT request has to be send 1st.

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [July 11, 2020, 1:06am UTC](https://community.postman.com/t/how-do-i-skip-one-request-from-collection/3541/5 "2020-07-11T01:06:41Z")

</div>

Hey @binitnyt,

I don’t believe you can skip the first request. A workaround to that is adding a dummy request ahead of what your first request is now. It can point to a URL like `https://postman-echo.com/get` which will just echo the request in the response. In the pre-request script for the dummy request, you can set `postman.setNextRequest("<next-request-name>")`.

Best,

Kevin
