# Is it possible to do different requests (GET and then POST) within one request?

**URL:** <https://community.postman.com/t/is-it-possible-to-do-different-requests-get-and-then-post-within-one-request/73125>\
**Category:** Help Hub\
**Tags:** variables, collections, postman-flows\
**Created:** [December 26, 2024, 9:00pm UTC](https://community.postman.com/t/is-it-possible-to-do-different-requests-get-and-then-post-within-one-request/73125 "2024-12-26T21:00:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cruxto](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cruxto](https://community.postman.com/u/cruxto)\
**Post date:** [December 27, 2024, 8:53am UTC](https://community.postman.com/t/is-it-possible-to-do-different-requests-get-and-then-post-within-one-request/73125/4 "2024-12-27T08:53:53Z")

</div>

Hi @ameenjafferie,

Another approach you can try is the [pm.sendRequest](https://learning.postman.com/docs/tests-and-scripts/write-scripts/postman-sandbox-api-reference/#send-requests-from-scripts) with your Pre and Test script areas.

I use this approach to try to reduce the number of steps in a test, which are essentially test setup steps.

There is also an example in another post in the community [here](https://community.postman.com/t/sendrequest-in-a-pre-request-script-on-collection-how-to-get-response-to-set-collection-variable/40211)

Also if you need the requests to run in a certain order, I’d recommend using async/await (promises) to guarantee they are sent in the correct order. Examples [here](https://blog.postman.com/understanding-async-await-in-node-js/)

I’d consider using the [package library](https://learning.postman.com/docs/tests-and-scripts/write-scripts/package-library/) to avoid lots of duplicated code., if this is something you will be doing regularly,

---

_[View the full topic](https://community.postman.com/t/is-it-possible-to-do-different-requests-get-and-then-post-within-one-request/73125)._
