# Access global and/or flow context from a GLOBAL HOOK?

**URL:** <https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457>\
**Category:** Developing Nodes\
**Created:** [16 May 2023 10:21 UTC](https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457 "2023-05-16T10:21:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 May 2023 12:10 UTC](https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457/2 "2023-05-16T12:10:32Z")

</div>

As I asked in your other thread:

> [@How to activate the Global Hooks](https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251/11):
>
> > [@How to activate the Global Hooks](https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251/10):
> >
> > and using „var sqlite3=global.get('sqlite3');“ with the error „TypeError: global.get is not a function“.
> 
> 1. Where was this code written? in a function node? in a custom node/plugin

---

_[View the full topic](https://discourse.nodered.org/t/access-global-and-or-flow-context-from-a-global-hook/78457)._
