# Is it possible to get global variable value and put it in requeste message?

**URL:** <https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 1, 2020, 4:05pm UTC](https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152 "2020-07-01T16:05:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillenoble59](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/guillenoble59/32/16104_2.png) [@guillenoble59](https://forum.katalon.com/u/guillenoble59)\
**Post date:** [July 1, 2020, 4:05pm UTC](https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152/1 "2020-07-01T16:05:38Z")

</div>

Hi  
In my proyect I have a test case for testing UI. Here I get a certain value using global variable.  
Then, this value I need to place it in the request message of a SOAP web service request body like this:  
TEST CASE 1:  
…  
Globalvariable.variable1 = value;  
…  
SOAP:  
…  
\< something \> Globalvariable.variable1\< / something \>  
…

I know thar for each web service I have a place where I can put variables and then do something like this:

- ${variable}  
…but this is NOT what I want because it is not the same.

Is it possible to do this?

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [July 1, 2020, 5:11pm UTC](https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152/2 "2020-07-01T17:11:01Z")

</div>

Hi @guillenoble59,  
Have you tried to use ${GlobalVariable.variable1} in the SOAP message?

---

<div class="post-metadata">

**Author:** ![guillenoble59](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/guillenoble59/32/16104_2.png) [@guillenoble59](https://forum.katalon.com/u/guillenoble59)\
**Post date:** [July 2, 2020, 2:44pm UTC](https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152/3 "2020-07-02T14:44:19Z")

</div>

Hi, thanks for the response  
I managed myself to solve the problem by creating in the request message of my SOAP web service a variable of type Global variable

---

<div class="post-metadata">

**Author:** ![Lewis-H](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@Lewis-H](https://forum.katalon.com/u/Lewis-H)\
**Post date:** [July 2, 2020, 2:54pm UTC](https://forum.katalon.com/t/is-it-possible-to-get-global-variable-value-and-put-it-in-requeste-message/45152/4 "2020-07-02T14:54:31Z")

</div>

If a local variable exists with the same name as the local variable that you want to access, then the global variable is shadowed. That is, preference is given to the local variable.
