# Change all references to variable in a workspace or collection

**URL:** <https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972>\
**Category:** Help Hub\
**Created:** [August 20, 2021, 7:00pm UTC](https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972 "2021-08-20T19:00:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.harris](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@michael.harris](https://community.postman.com/u/michael.harris)\
**Post date:** [August 20, 2021, 7:00pm UTC](https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972/1 "2021-08-20T19:00:27Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_: I want to change an environment variable name. It is used everywhere in a workspace. Is there a simple way to change all the locations it is used instead of having to go through each individual request and changing the name manually?

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [August 20, 2021, 7:17pm UTC](https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972/2 "2021-08-20T19:17:54Z")

</div>

hi @michael.harris - you can try **Find and Replace** in the desktop app: [https://learning.postman.com/docs/getting-started/navigating-postman/#find-and-replace](https://learning.postman.com/docs/getting-started/navigating-postman/#find-and-replace)

---

<div class="post-metadata">

**Author:** ![michael.harris](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@michael.harris](https://community.postman.com/u/michael.harris)\
**Post date:** [August 20, 2021, 8:57pm UTC](https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972/3 "2021-08-20T20:57:04Z")

</div>

Thanks. I used that, but I’m now seeing something interesting. The items I replaced are not showing up for others as replaced. Also, some of the items I replaced show up in the pre/post scripts and the URLs as changed, but when I run the request, the old value is being referenced - so it fails.

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/9/998eebe61da7f8807d1a2c095b057cf48964d21c.png)  
The item in the red square was changed to: knownPatientId

If I perform a search, there are no results for: knownPatientID. I checked in the prerequest script and request parameters and the appropriate text is there.

---

<div class="post-metadata">

**Author:** ![michael.harris](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@michael.harris](https://community.postman.com/u/michael.harris)\
**Post date:** [August 23, 2021, 3:22pm UTC](https://community.postman.com/t/change-all-references-to-variable-in-a-workspace-or-collection/26972/4 "2021-08-23T15:22:46Z")

</div>

I think I may have found an issue: When I did find and replace, any URL that had a replacement in it did not recognize the change. When I made a pointless change, like add a space to the end of the URL and resaved the request, then the change was recognized.

I have some co-workers reporting that they still don’t see the changes I made in the workspace. I am trying to figure out why this is and how to fix it.
