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: