# How to inject/modify request payload values while running from Collection Runner

**URL:** <https://community.postman.com/t/how-to-inject-modify-request-payload-values-while-running-from-collection-runner/6936>\
**Category:** Help Hub\
**Tags:** collection-runner\
**Created:** [August 2, 2019, 2:22am UTC](https://community.postman.com/t/how-to-inject-modify-request-payload-values-while-running-from-collection-runner/6936 "2019-08-02T02:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![debashish.jagadeba](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@debashish.jagadeba](https://community.postman.com/u/debashish.jagadeba)\
**Post date:** [August 2, 2019, 2:22am UTC](https://community.postman.com/t/how-to-inject-modify-request-payload-values-while-running-from-collection-runner/6936/1 "2019-08-02T02:22:08Z")

</div>

Hi All,

I have a collection of tests which I am trying to run through Runner. The problem is on of the request will generate a code (in the database) which i need to inject to the next request to make it work.

For example Request A generate a code in the database which I have to extract manually. This code is the payload for the next request to work.  
How i can do it? any suggestion?

Note: this code not returned or exposed in the api response which means i can’t grab it and set as an env variable

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [August 2, 2019, 6:33am UTC](https://community.postman.com/t/how-to-inject-modify-request-payload-values-while-running-from-collection-runner/6936/2 "2019-08-02T06:33:45Z")

</div>

Hi @debashish.jagadeba, welcome to the community! 👋

I am afraid that if there’s no way through an API that you can reach the response / generated code, then it’s not possible via Postman to achieve it.

However, maybe you can write some system scripts (such as a python script / shell script) to automate this process or you can write an _endpoint_ which returns this code after it gets generated.

Along with that you might be interested in exploring the CLI companion for postman which is [newman](https://github.com/postmanlabs/newman') and along those lines I think you can achieve some sort of automation around this as a workaround for this problem.

Maybe other people in the community have a solution to this / have faced this issue before?  
I’ll be interested in hearing their thoughts on the same!
