postman-app-support
postman-app-support copied to clipboard
Ability to use Postman Vault variables in pre/post-scripts
Is there an existing request for this feature?
- [X] I have searched the existing issues for this feature request and I know that duplicates will be closed
Is your feature request related to a problem?
With the introduction to Postman Vault, I was considering moving all our apiKey variables for our different environments into the vault. I wanted to determine which apiKey should be used depending on the Environment variable selected. (Dev, QA, etc). It seems like there is no way to use Postman Vault variables in pre/post scripts. They can only be used in local, collection, and environment variables.
Describe the solution you'd like
I want the ability to allow using Postman Vault variables in the pre/post-script so I can determine which Vault variable to use depending on the Environment I'm testing in.
Describe alternatives you've considered
Current option is to just set everything at the Environment level. However, since this is a shared Workspace an Environment for each user per environment (Dev, QA, Prod, etc) needs to be created and this is cumbersome.
Additional context
No response
### Tasks