# Solved: Environment variables in blocks of Postman flow

**URL:** <https://community.postman.com/t/solved-environment-variables-in-blocks-of-postman-flow/71219>\
**Category:** Help Hub\
**Tags:** postman-flows, environment-variable\
**Created:** [November 14, 2024, 10:51am UTC](https://community.postman.com/t/solved-environment-variables-in-blocks-of-postman-flow/71219 "2024-11-14T10:51:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincenzomazzotta](https://avatars.discourse-cdn.com/v4/letter/v/c37758/32.png) [@vincenzomazzotta](https://community.postman.com/u/vincenzomazzotta)\
**Post date:** [November 14, 2024, 10:51am UTC](https://community.postman.com/t/solved-environment-variables-in-blocks-of-postman-flow/71219/1 "2024-11-14T10:51:41Z")

</div>

Hi to all,  
i lost 2 days because didn’t work environment variable in postman flow.

I discovered that to use enviromnent variables in postman flow when you select environment in top right of your postman flow you need to add in blocks type of variables as **Select type** and get environment variables.

So the environment variables will works recovered from environment selected.

Please add this info in documentation, thanks a lot.

---

<div class="post-metadata">

**Author:** ![lunar-module-1](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/lunar-module-1/32/26132_2.png) [@lunar-module-1](https://community.postman.com/u/lunar-module-1)\
**Post date:** [November 14, 2024, 2:49pm UTC](https://community.postman.com/t/solved-environment-variables-in-blocks-of-postman-flow/71219/2 "2024-11-14T14:49:26Z")

</div>

I’m sorry that the UX wasn’t clear and caused you to waste time. I agree this is confusing and we’re considering changes so that you can attach environments globally to a flow. Thank you for the feedback (we’ll review the documentation as well in the meantime).

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 14, 2024, 2:49pm UTC](https://community.postman.com/t/solved-environment-variables-in-blocks-of-postman-flow/71219/3 "2024-12-14T14:49:30Z")

</div>

Closed on December 14, 2024, 2:49pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
