# Collection Variable as response from Mock Server

**URL:** <https://community.postman.com/t/collection-variable-as-response-from-mock-server/28578>\
**Category:** Help Hub\
**Created:** [October 8, 2021, 11:38am UTC](https://community.postman.com/t/collection-variable-as-response-from-mock-server/28578 "2021-10-08T11:38:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bbahadur](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bbahadur](https://community.postman.com/u/bbahadur)\
**Post date:** [October 15, 2021, 9:17am UTC](https://community.postman.com/t/collection-variable-as-response-from-mock-server/28578/4 "2021-10-15T09:17:12Z")

</div>

Ended up using **Environment Variable** to get my task done. Thanks to solutions provided here → [Mock Server - Using Variables in Example Response](https://community.postman.com/t/mock-server-using-variables-in-example-response/2594)

---

_[View the full topic](https://community.postman.com/t/collection-variable-as-response-from-mock-server/28578)._
