# Collection Variables don't seem to be working

**URL:** <https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101>\
**Category:** Help Hub\
**Tags:** variables, collections\
**Created:** [March 31, 2022, 5:59pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101 "2022-03-31T17:59:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadwhocooks](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dadwhocooks](https://community.postman.com/u/dadwhocooks)\
**Post date:** [March 31, 2022, 5:59pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/1 "2022-03-31T17:59:20Z")

</div>

_My question_:

I’m not able to get Collection variables to work. I first set the variable in the Collection Variable Tab (See screen shot). I then create a new request that uses the variable but Postman says the Variable is Unresolved (See screen shot).

Also, If I set a collection variable by right clicking on a value in a request, it works, but when I look at the collection variable tab, the variable is not there.

I seem to be missing something fundamental so some help is appreciated.

_Details (like screenshots)_:

 ![Screen Shot 2022-03-31 at 1.42.23 PM](https://us1.discourse-cdn.com/getpostman/original/3X/4/7/47c609b191546760a7daa487ea7b843c62f1e0be.png)  
 ![Screen Shot 2022-03-31 at 1.42.33 PM](https://us1.discourse-cdn.com/getpostman/original/3X/3/3/33c8f82ebf45d09381987167f8edf81dc2285ca3.png)

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 31, 2022, 6:22pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/2 "2022-03-31T18:22:58Z")

</div>

Hey there!  
Sorry you’re having some trouble with this. Definitely not the kind of experience we want our users to have!

There have been some issues with Postman Sync this week. You can check for service interruptions on the Postman Status page [here](https://status.postman.com/).

The other possibility would be your internet connection. Are you perhaps behind a proxy or on an unstable connection?

Could you try to save the collection and retry after closing and re-opening your Postman tab(s)? Could possibly be a conflict issue.

If this continues to occur, I would recommend opening a support ticket [here](https://www.postman.com/support/).

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 1, 2022, 10:33am UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/3 "2022-04-01T10:33:19Z")

</div>

Hello @dadwhocooks, Welcome to the community 🥳 Good to have your here. Could you please save the collection and try again? I see that the “Save” button is enabled, once there’s no new updates, it will be disabled 😉

---

<div class="post-metadata">

**Author:** ![TimMensch](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@TimMensch](https://community.postman.com/u/TimMensch)\
**Post date:** [July 13, 2022, 5:13pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/4 "2022-07-13T17:13:53Z")

</div>

@bpricilla @kevinc-postman found this thread when looking for a similar problem.

I just created a new Team and moved some of my older collections into it, and the first thing I noticed was that the “Authorization” token was shared among everyone who used it. This is a problem since the Authorization token needs to be set by and unique for each user, and sharing it among users is going to cause users to stomp on other user values, which is a Bad Thing.

I noticed the “This isn’t secure; use variables!” note, and discovered the idea of Environments, which is great, but … it wouldn’t actually allow me to _set_ the Token to a variable. I would set it to `{{token}}`, either by hand or by using the Set Variable pop-up, and then I would hit save…and it would revert to the original raw token.

I also tried creating a collection variable, and every time I would create it and hit save, it would delete the newly created variable.

And…five minutes later, it seems to be working again? Your server status link shows no problems in the last 15 minutes or so, but it seems there may have been an issue?

Regardless, it would be nice if a freshly made change weren’t immediately overwritten if a save-to-server failed. **That** seems like a Postman bug, even if the bug only happens when the servers aren’t responding or updating reliably. Maybe something to do with creating a brand new team?

I still have the issue of wanting the `token` to be defined on a per-user basis, though. Thoughts?

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [July 14, 2022, 9:34pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/5 "2022-07-14T21:34:03Z")

</div>

Hey Tim!  
This sounds like an interesting situation 🤔

I wonder if it’s due to some kind of caching or having multiple windows open?

Have you tried reporting this [via Github](https://github.com/postmanlabs/postman-app-support/issues) or opening a [support ticket](https://www.postman.com/support/) yet? This would be the best way to get an answer as to what could be happening.

Best practices for handling tokens, keys and such would be environment variables and saving them under “Current Value” with the “secret” variable type. Tokens and the sort should never be stored on the collection level or under “Initial Value”.

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/6/6026b35f77d6e46632719846227bdd21d65367eb.png)

[Environments](https://learning.postman.com/docs/sending-requests/managing-environments/) make it a bit easier to manage things in a team where variables may need to vary from person to person. With “Current Value”, that is ONLY synced to your current session. This means that if you have something there on your web browser but then open the desktop app, that field will appear empty on the desktop app and to anyone else viewing the environment in your team.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![TimMensch](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@TimMensch](https://community.postman.com/u/TimMensch)\
**Post date:** [July 16, 2022, 11:10pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/6 "2022-07-16T23:10:47Z")

</div>

Current value sounds like what I need.

Given the other issue was ephemeral, I didn’t think filing a report would be worthwhile. And at this point it’s really too late.

---

<div class="post-metadata">

**Author:** ![docking-module-phy13](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@docking-module-phy13](https://community.postman.com/u/docking-module-phy13)\
**Post date:** [June 28, 2023, 6:14pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/7 "2023-06-28T18:14:03Z")

</div>

How do you reconcile that philosophy when Postman servers don’t use Current Value, only Initial Value? If tokens and secrets shouldn’t be assigned to Initial Value to protect them, what are our options?

---

<div class="post-metadata">

**Author:** ![altimetry-cosmonaut2](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@altimetry-cosmonaut2](https://community.postman.com/u/altimetry-cosmonaut2)\
**Post date:** [February 13, 2024, 6:57pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/8 "2024-02-13T18:57:03Z")

</div>

Was this ever resolved? I’m experiencing this same issue right now. Seemingly anything I do at the Collection level–Auth or Variables–doesn’t have effect on my Requests even after I “Save” the Collection or “Persist” Variables.

---

<div class="post-metadata">

**Author:** ![yadu4992](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@yadu4992](https://community.postman.com/u/yadu4992)\
**Post date:** [July 2, 2024, 8:29pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/9 "2024-07-02T20:29:16Z")

</div>

Still broken btw. Does not save at all. Restart of postman or mac… still the same. Any plans on fixing this anytime soon?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 2, 2024, 8:43pm UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/10 "2024-07-02T20:43:36Z")

</div>

Hey @yadu4992 👋🏻

As this topic and thread has been open for a while now, can you explain more about your context and workflow where you’re seeing the issue?

Providing visual examples will help show the problem too.

---

<div class="post-metadata">

**Author:** ![bryanbelong](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@bryanbelong](https://community.postman.com/u/bryanbelong)\
**Post date:** [October 18, 2024, 5:30am UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/11 "2024-10-18T05:30:56Z")

</div>

thanks this worked for me!!!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 18, 2024, 7:34am UTC](https://community.postman.com/t/collection-variables-dont-seem-to-be-working/34101/12 "2024-10-18T07:34:58Z")

</div>

Closed on October 18, 2024, 7:34am UTC


