# File-function context/flow/global missing

**URL:** <https://discourse.nodered.org/t/file-function-context-flow-global-missing/6278>\
**Category:** General\
**Created:** [1 January 2019 13:14 UTC](https://discourse.nodered.org/t/file-function-context-flow-global-missing/6278 "2019-01-01T13:14:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynAckFin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/synackfin/32/12468_2.png) [@SynAckFin](https://discourse.nodered.org/u/SynAckFin)\
**Post date:** [1 January 2019 13:14 UTC](https://discourse.nodered.org/t/file-function-context-flow-global-missing/6278/1 "2019-01-01T13:14:15Z")

</div>

I'm using the [file-function](https://flows.nodered.org/node/node-red-contrib-file-function) node and I'm having issues accessing [data stored in context/flow/global stores](https://nodered.org/docs/writing-functions#storing-data)  
When I execute the following within the file:  
console.log(flow.keys());  
I get the following error:  
[warn] [file function:Decoder] ReferenceError: flow is not defined

Any ideas on how I can access these variable stores?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 January 2019 13:18 UTC](https://discourse.nodered.org/t/file-function-context-flow-global-missing/6278/2 "2019-01-01T13:18:28Z")

</div>

That node hasnt been updated for over two years so has fallen far behind the core function node.

I see an issue has already been raised, but gone unanswered: [https://github.com/emiloberg/node-red-contrib-file-function/issues/3](https://github.com/emiloberg/node-red-contrib-file-function/issues/3)
