# Inject Node: "flow." and "global." variables?

**URL:** https://discourse.nodered.org/t/inject-node-flow-and-global-variables/122
**Category:** General
**Created:** [12 May 2018 05:51 UTC](https://discourse.nodered.org/t/inject-node-flow-and-global-variables/122 "2018-05-12T05:51:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Eric](https://discourse.nodered.org/u/Eric)
#### Post date: [12 May 2018 05:51 UTC](https://discourse.nodered.org/t/inject-node-flow-and-global-variables/122/1 "2018-05-12T05:51:15Z")

</div>

Hello.  
The Inject Node provides ways to inject strings, numbers, booleans, timestamp, and also “flow.” and “global.”. What’s the “flow.” and “global.” do? How are people using it?

These are such common terms I’m having trouble finding search results that talk specifically about it.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [12 May 2018 08:32 UTC](https://discourse.nodered.org/t/inject-node-flow-and-global-variables/122/2 "2018-05-12T08:32:28Z")

</div>

flow and global variables allow you to pass variable values between nodes either just within a flow or any nodes on any tab.

They are explained here. [https://nodered.org/docs/writing-functions#storing-data](https://nodered.org/docs/writing-functions#storing-data)

But you can also set them using the change node

---

<div class="post-metadata">

### Author: ![ad-He](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@ad-He](https://discourse.nodered.org/u/ad-He)
#### Post date: [31 May 2018 01:28 UTC](https://discourse.nodered.org/t/inject-node-flow-and-global-variables/122/3 "2018-05-31T01:28:55Z")

</div>

flow. like global variable. It exists at flow.  
When you use http-in to get request and set some flow.  
When another one request comes in it will see the same flow. variable.  
Be careful to use flow. or global.
