Inherited Varibles

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?

@quinnj09 You might want to go through this answer: 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. :slight_smile: