# Reading global environment variable from function node

**URL:** <https://discourse.nodered.org/t/reading-global-environment-variable-from-function-node/81619>\
**Category:** General\
**Tags:** function-node\
**Created:** [27 September 2023 18:22 UTC](https://discourse.nodered.org/t/reading-global-environment-variable-from-function-node/81619 "2023-09-27T18:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [28 September 2023 06:19 UTC](https://discourse.nodered.org/t/reading-global-environment-variable-from-function-node/81619/6 "2023-09-28T06:19:35Z")

</div>

I had some time to dig around in the code base: Looks like you fell over an issue in the global env management for `credential` types. This needs to be fixed; as it is currently, you won't get the credentials value back.

I propose you raise an issue in the NR GitHub repo!

---

_[View the full topic](https://discourse.nodered.org/t/reading-global-environment-variable-from-function-node/81619)._
