Skip to content

Can only get env variables from "Base Environment" in pre-request script #7550

Closed Answered by ihexxa
alaz-aura asked this question in Help
Discussion options

You must be logged in to vote

Hello @alaz-aura , Insomnia supports to access the selected environment, for example:

  • make sure that a "sub environment" (testing) is selected in the left top environment menu
  • try insomnia.environment.get('hello') to read hello from testing`

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alaz-aura
Comment options

@alaz-aura
Comment options

Answer selected by alaz-aura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants