I have a pre-request script on my collection, that sets a global variable value:
pm.globals.set("SOME-HEADER", headerVal);
console.log(headerVal)
I have a single request in this collection, and when I execute it, I can see the console log is outputting the correct value I expect.
However, the request has a header, and I am attempting to set this from the the global variable {{SOME-HEADER}} - however I can see that this is always set to the current value of the variable as shown in the variables UI. My pre-request script on the collection is seemingly setting it to a new value, but then then new value is not used on the request. What am I doing wrong?