# Is it possible to include a global value in external data file for postman?

**URL:** <https://community.postman.com/t/is-it-possible-to-include-a-global-value-in-external-data-file-for-postman/5953>\
**Category:** Help Hub\
**Created:** [June 18, 2019, 8:39am UTC](https://community.postman.com/t/is-it-possible-to-include-a-global-value-in-external-data-file-for-postman/5953 "2019-06-18T08:39:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton39](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Anton39](https://community.postman.com/u/Anton39)\
**Post date:** [June 18, 2019, 8:39am UTC](https://community.postman.com/t/is-it-possible-to-include-a-global-value-in-external-data-file-for-postman/5953/1 "2019-06-18T08:39:38Z")

</div>

Hi guys,

I want to include a global value into the test-script.  
As far as I know, I can add a json file to run a test, but I just want to write the key one time, and use it for all tests.

Is it possible to use a key - value in the test, which is written just one time?

Thanks

---

<div class="post-metadata">

**Author:** ![aamir.ahmed](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@aamir.ahmed](https://community.postman.com/u/aamir.ahmed)\
**Post date:** [June 18, 2019, 5:19pm UTC](https://community.postman.com/t/is-it-possible-to-include-a-global-value-in-external-data-file-for-postman/5953/2 "2019-06-18T17:19:43Z")

</div>

Hi @Anton39,

Correct me if I am wrong, are you trying to save some data as a global variable in the test script, if yes, you can enter the following code snippet in the Test scripts:  
**pm.globals.set(“variable\_key”, “variable\_value”);**  
By adding this, you can set the global variable and access it in the other test scripts by the following command:  
**pm.globals.get(“variable\_key”);**
