# Unable to use environment variable in response header of an example

**URL:** <https://community.postman.com/t/unable-to-use-environment-variable-in-response-header-of-an-example/3672>\
**Category:** Help Hub\
**Tags:** variables, examples, response, header\
**Created:** [December 27, 2018, 1:59pm UTC](https://community.postman.com/t/unable-to-use-environment-variable-in-response-header-of-an-example/3672 "2018-12-27T13:59:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonlaw](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jasonlaw](https://community.postman.com/u/jasonlaw)\
**Post date:** [December 27, 2018, 1:59pm UTC](https://community.postman.com/t/unable-to-use-environment-variable-in-response-header-of-an-example/3672/1 "2018-12-27T13:59:03Z")

</div>

I created an example and have the response to return a header **X-Request-ID** with a value from an environment variable.

When I send the request to the mock server, the header of the response was not replaced with the environment variable

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/9/1/916786286191657e9c6e0567d6de54ba53f9341b.png)

Is there anything I have missed?
