# Get the first request in the next folder

**URL:** <https://community.postman.com/t/get-the-first-request-in-the-next-folder/32268>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [February 6, 2022, 4:59am UTC](https://community.postman.com/t/get-the-first-request-in-the-next-folder/32268 "2022-02-06T04:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![security-cosmologis4](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@security-cosmologis4](https://community.postman.com/u/security-cosmologis4)\
**Post date:** [February 6, 2022, 4:59am UTC](https://community.postman.com/t/get-the-first-request-in-the-next-folder/32268/1 "2022-02-06T04:59:21Z")

</div>

I need to use setNextRequest(firstRequestInNextFolder)

I need to get the request in the next folder. (Not the one where the current request is running in.)

Any idea how to get reference to: firstRequestInNextFolder?

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 15, 2022, 2:32pm UTC](https://community.postman.com/t/get-the-first-request-in-the-next-folder/32268/2 "2022-02-15T14:32:02Z")

</div>

Hi @security-cosmologis4

The setNextRequest is not folder specific, it’s collection specific. So you can literally just call the request name as long as it is within the same collection.

Example;

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/2/29c1a4266f69b5030aa036a9fa2f2e6b68910516.png)

![image](https://us1.discourse-cdn.com/getpostman/original/2X/5/5c17d0fac19a4d5822738677a656a9d7c39fb129.png)
