# \#globals

**URL:** https://community.postman.com/tag/globals/538.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Unable to export variables in the Global Environment](https://community.postman.com/t/unable-to-export-variables-in-the-global-environment/89043)

<div class="topic-metadata">

**Author:** [@docking-module-astr9](https://community.postman.com/u/docking-module-astr9)\
**Replies:** 6\
**Last updated:** [April 8, 2026, 1:07pm UTC](https://community.postman.com/t/unable-to-export-variables-in-the-global-environment/89043 "2026-04-08T13:07:07Z")

</div>

Hello, I’m unable to export my variables in the Global environments as it encountered error when I press the “Export” button at the top right. Does anyone experience the same in Postman V12.0.1?

---

## [Globals become undefined after switching workspaces despite being visible in UI](https://community.postman.com/t/globals-become-undefined-after-switching-workspaces-despite-being-visible-in-ui/84246)

<div class="topic-metadata">

**Author:** [@jorismathijssen9292](https://community.postman.com/u/jorismathijssen9292)\
**Replies:** 3\
**Last updated:** [September 4, 2025, 1:59pm UTC](https://community.postman.com/t/globals-become-undefined-after-switching-workspaces-despite-being-visible-in-ui/84246 "2025-09-04T13:59:55Z")

</div>

I’m experiencing an intermittent issue where global variables become undefined in scripts after switching between workspaces, even though they’re clearly visible in the Variables tab. Steps to reproduce: Have global …

---

## [Collection level headers and authorization for GraphQL](https://community.postman.com/t/collection-level-headers-and-authorization-for-graphql/71087)

<div class="topic-metadata">

**Author:** [@security-cosmologi18](https://community.postman.com/u/security-cosmologi18)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 12:46pm UTC](https://community.postman.com/t/collection-level-headers-and-authorization-for-graphql/71087 "2024-11-11T12:46:15Z")

</div>

I have a collection that compounds of GQLs queries only. Unlike REST collection it does not have headers and authorization on the collection level that the requests can inherit from. Do you know why it messing and how …

---

## [Postman CLI pass in Global Variables](https://community.postman.com/t/postman-cli-pass-in-global-variables/43180)

<div class="topic-metadata">

**Author:** [@ianb120](https://community.postman.com/u/ianb120)\
**Replies:** 3\
**Last updated:** [February 7, 2024, 11:10am UTC](https://community.postman.com/t/postman-cli-pass-in-global-variables/43180 "2024-02-07T11:10:50Z")

</div>

Hi all, Been using the Postman CLI tool for a couple weeks, I can see that environments can be passed into the command line using a UID, but global variables are done using either a file path or adding them directly to …

---

## [Remove " from global variable, re-use in same request](https://community.postman.com/t/remove-from-global-variable-re-use-in-same-request/52109)

<div class="topic-metadata">

**Author:** [@normgean](https://community.postman.com/u/normgean)\
**Replies:** 2\
**Last updated:** [September 21, 2023, 9:36am UTC](https://community.postman.com/t/remove-from-global-variable-re-use-in-same-request/52109 "2023-09-21T09:36:50Z")

</div>

in my 1st request under Tests i have the following to get a value and add it as a global variable for later use var jsonData = pm.response.json(); var workplaceNumbers = \[\]; jsonData.workplaces.forEach(function(workpla…

---

## [Persisting (Global/Environment) Variables During Runtime](https://community.postman.com/t/persisting-global-environment-variables-during-runtime/31879)

<div class="topic-metadata">

**Author:** [@xavier.gutierrez](https://community.postman.com/u/xavier.gutierrez)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 2:42pm UTC](https://community.postman.com/t/persisting-global-environment-variables-during-runtime/31879 "2022-01-26T14:42:52Z")

</div>

How do I persist Global variable values programmatically? I was searching for this everywhere and I found this: How to persist variable values - Only some of the current values However, the link it references (Update …

---

## [Global variables](https://community.postman.com/t/global-variables/27538)

<div class="topic-metadata">

**Author:** [@cmnazario](https://community.postman.com/u/cmnazario)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 1:58pm UTC](https://community.postman.com/t/global-variables/27538 "2021-09-09T13:58:31Z")

</div>

Hey guys, A question, what is the difference between: pm.globals.set("variable\_key", "variable\_value"); and postman.setGlobalVariable('test', 'my\_value')
