Saving a Postman header value into a variable throughout requests in a collection : <p>Good afternoon Stackers,</p>

<p>I am trying to automate my test suite in Postman so that I don't have to manually go into each request and change that header value to what I initially put in the first request. </p>

<p>My test suite currently looks like:</p>

<p>First Request:</p>

<pre><code>var headerValue = postman.setGlobalVariable('Number', headerValue);
console.log("Number is: " + headerValue);
</code></pre>

<p>Second Request Header:</p>

<pre><code>Number - {{headerValue}}
</code></pre>

<p>I would expect headerValue to have the value of 'Number' since I have set it as a global variable but it is coming back as undefined. I'm not sure what I am doing wrong.</p>
