# User Defined Evironmental Variables

**URL:** <https://discourse.nodered.org/t/user-defined-evironmental-variables/6455>\
**Category:** General\
**Created:** [6 January 2019 14:40 UTC](https://discourse.nodered.org/t/user-defined-evironmental-variables/6455 "2019-01-06T14:40:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 January 2019 14:50 UTC](https://discourse.nodered.org/t/user-defined-evironmental-variables/6455/2 "2019-01-06T14:50:50Z")

</div>

You can not store data in a flow into an environmental variable. You create the Environmental variable in your settings file and store a constant in it. Then in your flw you can access that value.

You can use persistant data and store that - and now that data will remain over reboots or shut down/restarts of NR. See [this in the Documentation](https://nodered.org/docs/user-guide/context) and have a read of this [thread](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115)

---

_[View the full topic](https://discourse.nodered.org/t/user-defined-evironmental-variables/6455)._
