# Inherited Varibles

**URL:** <https://community.postman.com/t/inherited-varibles/2317>\
**Category:** Help Hub\
**Created:** [August 9, 2018, 3:08pm UTC](https://community.postman.com/t/inherited-varibles/2317 "2018-08-09T15:08:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quinnj09](https://avatars.discourse-cdn.com/v4/letter/q/a698b9/32.png) [@quinnj09](https://community.postman.com/u/quinnj09)\
**Post date:** [August 9, 2018, 3:08pm UTC](https://community.postman.com/t/inherited-varibles/2317/1 "2018-08-09T15:08:56Z")

</div>

Is it possible, for a collection to have a couple of variables, and the environment to inherit a certain variable from the collection depending on the environment name?

eg:

Collection ‘A’ has variable ‘Var1’ with Value ‘192’  
Collection ‘A’ has variable ‘Var2’ with Value ‘194’  
Collection ‘B’ has variable ‘Var1’ with Value ‘212’  
Collection ‘A’ has variable ‘Var2’ with Value ‘195’

Enviroment ‘X’ has variable ‘Var1a’ which auto-populates with the value of Var1 from the collection, depending on which collection is being used.

Enviroment ‘Y’ has variable ‘Var1a’ which auto-populates with the value of Var2 from the collection, depending on which collection is being used.

Does this make sense?

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [August 10, 2018, 12:17pm UTC](https://community.postman.com/t/inherited-varibles/2317/2 "2018-08-10T12:17:18Z")

</div>

@quinnj09 You might want to go through this answer: [https://stackoverflow.com/questions/51654839/making-an-environment-local-for-collection-in-postman/51658988#51658988](https://stackoverflow.com/questions/51654839/making-an-environment-local-for-collection-in-postman/51658988#51658988)

It’ll clarify for you how variables work and in my honest opinion, inheriting variable doesn’t quite actually fit a use-case.

But yes, resolution order matters and you can read the rest in the above mentioned answer. 🙂
