# How to manage GlobalVariable directly in HTTP body of a POST request

**URL:** <https://forum.katalon.com/t/how-to-manage-globalvariable-directly-in-http-body-of-a-post-request/26006>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [May 22, 2019, 1:14pm UTC](https://forum.katalon.com/t/how-to-manage-globalvariable-directly-in-http-body-of-a-post-request/26006 "2019-05-22T13:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco.candellone](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@marco.candellone](https://forum.katalon.com/u/marco.candellone)\
**Post date:** [May 22, 2019, 1:14pm UTC](https://forum.katalon.com/t/how-to-manage-globalvariable-directly-in-http-body-of-a-post-request/26006/1 "2019-05-22T13:14:44Z")

</div>

How is possible to pass the GlobalVariable **directly** in the HTTP body of a POST request ?

I’ve tried with:

{  
“batch\_code”: “MC01”,  
“name”: “OMR-150-50-MC”,  
“planned\_start\_dt”: “2019-05-14T22:05:00.000Z”,  
“planned\_end\_dt”: “2019-05-15T07:35:00.000Z”,  
“real\_start\_dt”: “2019-05-14T22:05:00.000Z”,  
“real\_end\_dt”: “2019-05-15T07:35:00.000Z”,  
“status”: “ONGOING”,  
“unit”: {  
“id”: **${GlobalVariable.unit\_id}** ,  
“name”: “steril-3”  
},  
“recipe”: {  
“id”: **${GlobalVariable.recipe\_id}** ,  
“version”: 1  
}  
}

and also with :

{  
“batch\_code”: “MC01”,  
“name”: “OMR-150-50-MC”,  
“planned\_start\_dt”: “2019-05-14T22:05:00.000Z”,  
“planned\_end\_dt”: “2019-05-15T07:35:00.000Z”,  
“real\_start\_dt”: “2019-05-14T22:05:00.000Z”,  
“real\_end\_dt”: “2019-05-15T07:35:00.000Z”,  
“status”: “ONGOING”,  
“unit”: {  
“id”: **“${GlobalVariable.unit\_id}”** ,  
“name”: “steril-3”  
},  
“recipe”: {  
“id”: **“${GlobalVariable.recipe\_id}”** ,  
“version”: 1  
}  
}

but variables are not replaced with the values.

---

<div class="post-metadata">

**Author:** ![marco.candellone](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@marco.candellone](https://forum.katalon.com/u/marco.candellone)\
**Post date:** [May 22, 2019, 1:45pm UTC](https://forum.katalon.com/t/how-to-manage-globalvariable-directly-in-http-body-of-a-post-request/26006/2 "2019-05-22T13:45:33Z")

</div>

**I SOLVED**! mistakenly used the globalvariables but passed the variables

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:48am UTC](https://forum.katalon.com/t/how-to-manage-globalvariable-directly-in-http-body-of-a-post-request/26006/3 "2022-08-08T07:48:56Z")

</div>


