# Sending new test data in body of each new setNextRequest iteration

**URL:** <https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842>\
**Category:** Help Hub\
**Tags:** variables, setnextrequest, sendrequest\
**Created:** [April 19, 2021, 10:55am UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842 "2021-04-19T10:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdzanan](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rdzanan](https://community.postman.com/u/rdzanan)\
**Post date:** [April 19, 2021, 10:55am UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842/1 "2021-04-19T10:55:14Z")

</div>

Hey guys I have searched all over the forum but wasnt able to find the solution. Basically I use random method to generate name in one of my requests which repeats multiple times in collection. Issue is when I run the setNextRequest method it will choose the test data already generated in previous one and will not generate new variable ( which causes conflict since name already exists). Is there a way to send new data in body in each iteration of setNextRequest feature.

Thank you !

---

<div class="post-metadata">

**Author:** ![praveendvd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/praveendvd/32/6796_2.png) [@praveendvd](https://community.postman.com/u/praveendvd)\
**Post date:** [April 19, 2021, 2:33pm UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842/2 "2021-04-19T14:33:27Z")

</div>

[https://www.postman.com/praveendvd-public/workspace/postman-tricks-and-tips/overview](https://www.postman.com/praveendvd-public/workspace/postman-tricks-and-tips/overview)

all kind of setNextRequest examples

---

<div class="post-metadata">

**Author:** ![greenridinghood](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/greenridinghood/32/26145_2.png) [@greenridinghood](https://community.postman.com/u/greenridinghood)\
**Post date:** [May 25, 2023, 7:35pm UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842/3 "2023-05-25T19:35:30Z")

</div>

Did you find a solution, I am especially using random for avoid conflict but still getting name conflict. Mine goal is when I send POST body for automation test, every time send new randomNoun in body.  
{  
“name”: “{{$randomNoun}}”,  
“second\_name”: “{{$randomVerb}}”,  
“repeat”: 1  
}

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [May 26, 2023, 9:46am UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842/4 "2023-05-26T09:46:00Z")

</div>

I would have recommended starting a new thread and linking to this one.

You need to show your code for this. pre-request scripts and tests tab.

Please post code (or JSON) using the preformatted text option so everything doesn’t align to the left.

As a starter for 10, remove the quotes from the dynamic variables. It will be generated as a string on runtime.
