# Calling global variable to object repository url

**URL:** <https://forum.katalon.com/t/calling-global-variable-to-object-repository-url/60732>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [December 10, 2021, 9:36am UTC](https://forum.katalon.com/t/calling-global-variable-to-object-repository-url/60732 "2021-12-10T09:36:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronny27006](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ronny27006/32/16104_2.png) [@ronny27006](https://forum.katalon.com/u/ronny27006)\
**Post date:** [December 10, 2021, 9:36am UTC](https://forum.katalon.com/t/calling-global-variable-to-object-repository-url/60732/1 "2021-12-10T09:36:08Z")

</div>

Hi, I am trying to call global variable I made on profile named “host” to url in object repository.  
This is what I am doing, seems not working.

${host}/basic/user/…

Error : “Cannot send the test request. Reason: illegal character in path at index 1 : ${host}/basic/user/…”

Is this the right way to call the global variable to url in OR?  
I have read the doc about this, but most of it works for the script mode

Thank you in advance,  
Ronny

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [December 10, 2021, 9:53am UTC](https://forum.katalon.com/t/calling-global-variable-to-object-repository-url/60732/2 "2021-12-10T09:53:48Z")

</div>

> [@ronny27006](#):
>
> ${host}/basic/user/…”

you have to use `${GlobalVariable.host}/basic/user/…”`  
see: [https://docs.katalon.com/katalon-studio/docs/execution-profile-v54.html#use-a-global-variable](https://docs.katalon.com/katalon-studio/docs/execution-profile-v54.html#use-a-global-variable)

---

<div class="post-metadata">

**Author:** ![ronny27006](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ronny27006/32/16104_2.png) [@ronny27006](https://forum.katalon.com/u/ronny27006)\
**Post date:** [December 10, 2021, 9:56am UTC](https://forum.katalon.com/t/calling-global-variable-to-object-repository-url/60732/3 "2021-12-10T09:56:18Z")

</div>

> [@anon46315158](#):
>
> [https://docs.katalon.com/katalon-studio/docs/execution-profile-v54.html#use-a-global-variable](https://docs.katalon.com/katalon-studio/docs/execution-profile-v54.html#use-a-global-variable)

Thank you so much.  
Its working
