# Help with post request and response

**URL:** <https://community.postman.com/t/help-with-post-request-and-response/52251>\
**Category:** Help Hub\
**Tags:** tests, variables, json\
**Created:** [September 22, 2023, 5:57pm UTC](https://community.postman.com/t/help-with-post-request-and-response/52251 "2023-09-22T17:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wendriltotvs](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@wendriltotvs](https://community.postman.com/u/wendriltotvs)\
**Post date:** [September 22, 2023, 5:57pm UTC](https://community.postman.com/t/help-with-post-request-and-response/52251/1 "2023-09-22T17:57:00Z")

</div>

Hello!

I’m new using postman and I need to use a post method multiple times with different values. My post request is like this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/0/30f63b23d88fa9c31db6d5fe97be7e8ed0956019.png)

The variables come from a get request:

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

I need to execute the body multiple times with different values and I need to export in a file the variable “IdAssunto” with the response, I will use this file in a sql script. Is this possible?

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [September 22, 2023, 8:07pm UTC](https://community.postman.com/t/help-with-post-request-and-response/52251/2 "2023-09-22T20:07:28Z")

</div>

Hi @wendriltotvs

There is the option to save the response to a file.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/5/6574c535f1673727db6f4bf873c842bbce545f85.png)

But it sounds like you are trying to automate and run multiple iterations etc.

I don’t think Postman is designed to work in the way you describe and would likely require some reasonably complex scripting.

There are plenty of resources online that discuss writing responses to a file, @vdespa has a YouTube video here explaining this concept

[![](https://img.youtube.com/vi/cCRmry10874/maxresdefault.jpg "How to programmatically save the response to file in Postman") ](https://www.youtube.com/watch?v=cCRmry10874)

---

<div class="post-metadata">

**Author:** ![wendriltotvs](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@wendriltotvs](https://community.postman.com/u/wendriltotvs)\
**Post date:** [September 22, 2023, 8:28pm UTC](https://community.postman.com/t/help-with-post-request-and-response/52251/3 "2023-09-22T20:28:09Z")

</div>

I will try that. Thank you!!

---

<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:** [October 22, 2023, 8:29pm UTC](https://community.postman.com/t/help-with-post-request-and-response/52251/4 "2023-10-22T20:29:02Z")

</div>

Closed on October 22, 2023, 8:29pm UTC

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