# pm.execution.setNextRequest not works in api test

**URL:** <https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917>\
**Category:** Help Hub\
**Tags:** tests, setnextrequest\
**Created:** [November 6, 2024, 10:24pm UTC](https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917 "2024-11-06T22:24:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![airanedition](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@airanedition](https://community.postman.com/u/airanedition)\
**Post date:** [November 6, 2024, 10:24pm UTC](https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917/1 "2024-11-06T22:24:49Z")

</div>

Good afternoon, I have a collection in Postman of 4 methods: Add, Get, Update, Remove, having specified Request in all methods, the last condition was to specify pm.execution.setNextRequest(“Get Place”) in Remove, so that they are fulfilled again Get Place conditions. But pm.execution.setNextRequest doesn’t work, stopping at Remove. Tell me what am I doing wrong? Screenshots are attached.  
[https://radikal.host/i/lvTdQP](https://radikal.host/i/lvTdQP)  
[https://radikal.host/i/lvTueQ](https://radikal.host/i/lvTueQ)

---

<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:** [November 6, 2024, 10:27pm UTC](https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917/2 "2024-11-06T22:27:45Z")

</div>

Hey 👋🏻

Can you check the name of the request and the string that you have in the `setNextRequest` function? Those should be the same.

---

<div class="post-metadata">

**Author:** ![airanedition](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@airanedition](https://community.postman.com/u/airanedition)\
**Post date:** [November 7, 2024, 10:28am UTC](https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917/3 "2024-11-07T10:28:03Z")

</div>

Good afternoon, thank you very much, everything worked. You were very helpful.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 10, 2024, 10:28am UTC](https://community.postman.com/t/pm-execution-setnextrequest-not-works-in-api-test/70917/4 "2024-11-10T10:28:35Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
