# Set the gmail address from the dashboard

**URL:** <https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568>\
**Category:** Dashboard\
**Created:** [29 March 2019 09:50 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568 "2019-03-29T09:50:50Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![JokinSegu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JokinSegu](https://discourse.nodered.org/u/JokinSegu)\
**Post date:** [29 March 2019 12:38 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/21 "2019-03-29T12:38:17Z")

</div>

Now it is working thank you very much to you two for your help and for beeing on alert.  
I appreaciate a lot

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [29 March 2019 13:24 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/22 "2019-03-29T13:24:54Z")

</div>

This is a very timely thread for me as I'm thinking about doing something similar so my to, cc, & Bcc headers can be set via the dashboard.

My question is what value will be in the dashboard fields when the flow starts again after a reboot?

---

<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:** [29 March 2019 13:39 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/23 "2019-03-29T13:39:56Z")

</div>

@wb666greene - by dashboard do you mean the ui-dashboard or just the node's configuration.

In eithor case, on a reboot the values will be whatever you have set them to in your initilization flow (assuming you have some inject (?) nodes that run at startup)

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [29 March 2019 15:24 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/24 "2019-03-29T15:24:32Z")

</div>

> [@wb666greene](#):
>
> what value will be in the dashboard fields when the flow starts again after a reboot?

If you use a global variable instead of a flow variable, you can set it in the `settings.js` file so that it is available immediately on startup. If you want it to appear in the text input (`ui_text_input`) node, you will have to send it there.

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [29 March 2019 15:43 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/25 "2019-03-29T15:43:09Z")

</div>

I assume the global variable context is the same as the relatively new "file storage", this is what I was thinking about about trying, I didn't realize the change node could go the setting and getting to the flow variables.

Trying to init the display on the dashboard upon reboot has been an issue for me. Most of my dashboard has been to send MQTT messages so using "retain" was an easy way to get the last value on restart, but I had to add an rbe node as a "loop breaker" to the initialization when updated the dashboard display.

So I'm thinking this hew global context and persistent storage could be "cleaner". Downside is settings file edits on all my deployed systems. Not that I have that many, but its a thing that can easily be forgotten about when bringing a new system up in the future.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [29 March 2019 16:30 UTC](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568/26 "2019-03-29T16:30:12Z")

</div>

> [@wb666greene](#):
>
> I assume the global variable context is the same as the relatively new "file storage"

No, these are different. The `functionGlobalContext` object always was "persistent" in the sense that it lives in a file that is read each time NR starts. If a flow changes a variable defined in `functionGlobalContext`, the persistence of the the change depends on the type of storage you have selected for it. If you have both memory and file context storage available, you can select which to use in a `change` node, and if you use a `function` node you can even make that decision during execution.

> [@wb666greene](#):
>
> Downside is settings file edits on all my deployed systems.

True enough, but I have found that none of my systems use the default `settings.js` file distributed with NR. I keep a baseline modified file on GitHub, download it for each new system, and make small tweaks if needed.

[Previous page](https://discourse.nodered.org/t/set-the-gmail-address-from-the-dashboard/9568.md?page=1)
