User Defined Evironmental Variables


#1

Hi,
I'm referring this example flow. I've in one of my flows, a client_secret as payload. I'm trying to store this payload as an environmental variable. I'm a newbie and I'm not sure how to do it. Can someone help me please?


#2

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 and have a read of this thread


#3

Just to expand on that, environment variables exist in the host OS. They are only read when starting Node-RED so even if you were to update them, they wouldn't help you.