# How do I get the environmental variables to work?

**URL:** <https://community.postman.com/t/how-do-i-get-the-environmental-variables-to-work/8995>\
**Category:** Help Hub\
**Created:** [November 13, 2019, 9:07pm UTC](https://community.postman.com/t/how-do-i-get-the-environmental-variables-to-work/8995 "2019-11-13T21:07:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpdedik](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lpdedik](https://community.postman.com/u/lpdedik)\
**Post date:** [November 13, 2019, 9:07pm UTC](https://community.postman.com/t/how-do-i-get-the-environmental-variables-to-work/8995/1 "2019-11-13T21:07:35Z")

</div>

The collection variables are getting used, but I want to use the ones set up for a specific environment. Are there known issues with this?

---

<div class="post-metadata">

**Author:** ![odanylewycz](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/odanylewycz/32/3240_2.png) [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Post date:** [November 14, 2019, 12:49am UTC](https://community.postman.com/t/how-do-i-get-the-environmental-variables-to-work/8995/2 "2019-11-14T00:49:00Z")

</div>

Hi @lpdedik,

Collection variables are in a different scope than environment variables, in that, collection variables and in a higher scope, and environment variables are in a lower scope.

So when you select a environment to use, the values of those variables will be used over the collection variables, that is, if the variables in both areas have the same name; environment variables trump collection variables. If they are different names, it will use a combination of them.

Refer to the link below for more information.

[https://learning.getpostman.com/docs/postman/environments-and-globals/variables/](https://learning.getpostman.com/docs/postman/environments-and-globals/variables/)

If this doesn’t solve your issue, please clarify the issue you are experiencing.

Regards,  
Orest
