# How to capture a response string return in order to change to next request

**URL:** <https://community.postman.com/t/how-to-capture-a-response-string-return-in-order-to-change-to-next-request/43100>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [January 20, 2023, 10:06pm UTC](https://community.postman.com/t/how-to-capture-a-response-string-return-in-order-to-change-to-next-request/43100 "2023-01-20T22:06:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwestein](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@bwestein](https://community.postman.com/u/bwestein)\
**Post date:** [January 20, 2023, 10:06pm UTC](https://community.postman.com/t/how-to-capture-a-response-string-return-in-order-to-change-to-next-request/43100/1 "2023-01-20T22:06:25Z")

</div>

I have a POST which gets a simple string value in the response. I need to use the string value for my next request which is a GET. I do not see how this is handled as a variable since the string response is not tied to a json response.

How do I capture this value and use in the next chain which is the GET?

![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/a/ea1fdf3efb891b53d7f85626b1c86aee47f296de.png)

---

<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:** [January 23, 2023, 3:16pm UTC](https://community.postman.com/t/how-to-capture-a-response-string-return-in-order-to-change-to-next-request/43100/2 "2023-01-23T15:16:55Z")

</div>

```auto
const response = pm.response.text()

```

To use it in the next request, can I suggest you go through the Postman Learning Center, as this is covered in the courses there.

---

<div class="post-metadata">

**Author:** ![bwestein](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@bwestein](https://community.postman.com/u/bwestein)\
**Post date:** [February 3, 2023, 8:24pm UTC](https://community.postman.com/t/how-to-capture-a-response-string-return-in-order-to-change-to-next-request/43100/3 "2023-02-03T20:24:49Z")

</div>

@michaelderekjones This worked for me but similar to your suggestion. Thanks for the help.  
pm.environment.set(“testId”, pm.response.text())
