Last active
December 15, 2019 17:25
-
-
Save jflessau/cc0e51b2bf98ad5a6aedd607a5661640 to your computer and use it in GitHub Desktop.
Set environment variable to value from response data in postman.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this goes into the "test" tab in postman | |
| var response = JSON.parse(responseBody); | |
| postman.setEnvironmentVariable("ENV_VAR_NAME", response.token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment