I have a collection variable defined (Collection > Edit > Variables tab. Variable name: token) that I’m using in as request header value. I want to set its value in script. I’m trying to set it with this:
but the Collection variable value doesn’t change. In the past I’ve used pm.globals and pm.environment, and those work here as expected, but this variable is actually scoped to the collection. I’d rather work with it within that scope than use the broader globals or environment scope.