# How to get next request name or id

**URL:** <https://community.postman.com/t/how-to-get-next-request-name-or-id/12863>\
**Category:** Help Hub\
**Created:** [May 25, 2020, 7:28am UTC](https://community.postman.com/t/how-to-get-next-request-name-or-id/12863 "2020-05-25T07:28:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [November 16, 2020, 12:33pm UTC](https://community.postman.com/t/how-to-get-next-request-name-or-id/12863/4 "2020-11-16T12:33:26Z")

</div>

You could use the Postman API to load the collection details, find the current request, then grab the one after it.

It would be something along the lines of what I proposed in this post:

> [@List of all requests in pre-request script](https://community.postman.com/t/list-of-all-requests-in-pre-request-script/17612/2):
>
> I didn’t do this in a pre-request script, but you certainly could adapt it to do so: [image] I used the Postman API to load the collection details then grabbed the name of all the requests. [Postman API Documentation](https://documenter.getpostman.com/view/631643/JsLs/#647806d5-492a-eded-1df6-6529b5dc685c)

---

_[View the full topic](https://community.postman.com/t/how-to-get-next-request-name-or-id/12863)._
