# Variables: Global request body with environment variables within - possible?

**URL:** <https://community.postman.com/t/variables-global-request-body-with-environment-variables-within-possible/11697>\
**Category:** Help Hub\
**Tags:** variables, collections\
**Created:** [April 3, 2020, 8:07am UTC](https://community.postman.com/t/variables-global-request-body-with-environment-variables-within-possible/11697 "2020-04-03T08:07:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankdoylezw](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/frankdoylezw/32/7322_2.png) [@frankdoylezw](https://community.postman.com/u/frankdoylezw)\
**Post date:** [April 3, 2020, 8:07am UTC](https://community.postman.com/t/variables-global-request-body-with-environment-variables-within-possible/11697/1 "2020-04-03T08:07:58Z")

</div>

Hello,

I’m trying to use a global variable that represents my ‘standard’ request. Then, depending on what I would like to test, I have environment level variables that change certain values in the global request body, e.g.

global variable: requestBody  
environment variable: maleGender: male

{  
“header”: {

},  
“payload”: {

```
"applicants": [
  {
    "definition": "First Applicant",
    "title": "Mr",
    "forenames": "John",
    "surname": "Doe",
    "gender": "{{maleGender}}",

```

The idea being that the global requestBody will be static across all of my tests, but I can change certain values at execution time using the environment variables. In the example above I want to replace the gender, obviously.

Could someone please suggest if I’m doing this correctly or if there is a better way to do so? I need to have a single request re-used across tens of tests, but be able to replace certain values unique to the tests.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 29, 2025, 3:10pm UTC](https://community.postman.com/t/variables-global-request-body-with-environment-variables-within-possible/11697/2 "2025-04-29T15:10:51Z")

</div>

Closed on April 29, 2025, 3:10pm UTC


