Postman nested variables not parsed in when get environment variable in Pre-Request script

Use pm.variables.replaceIn (available since v7.6.0.)

This will do the trick:

var authUrl = pm.variables.replaceIn(pm.environment.get("Auth-URL"));

pm.sendRequest({
   ....
})

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top