# Flow and global variables inaccessible when using dot notation

**URL:** <https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539>\
**Category:** General\
**Created:** [22 July 2020 10:52 UTC](https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539 "2020-07-22T10:52:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightbluecrab](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lightbluecrab](https://discourse.nodered.org/u/lightbluecrab)\
**Post date:** [22 July 2020 10:52 UTC](https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539/1 "2020-07-22T10:52:01Z")

</div>

Hello again,  
I am looking for a way of accessing global/flow variables inside nodes (such as inside the URL of an http-request-node). So I used a change-node to set `global.test` but it remains "undefined" when I try to access it using `{{global.test}}`, even though it is accessible using `global.get("test")`. It seems like the dot notation is not working within the mustache notation, because `{{payload}}` works, while `{{msg.payload}}` doenst. I am quite confused here, please tell me how to access those global/flow variables inside the URL field of a http-request-node, because `{{global.test}}` doenst work for me.

Thanks in advance 🙂

---

<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:** [22 July 2020 10:58 UTC](https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539/2 "2020-07-22T10:58:17Z")

</div>

The HTTP Request node does not support accessing flow/global context directly from its url field - it can only access msg properties using the `{{payload}}` syntax.

You would have to build the URL using a Change node before hand as pass it in as `msg.url`.

---

<div class="post-metadata">

**Author:** ![lightbluecrab](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lightbluecrab](https://discourse.nodered.org/u/lightbluecrab)\
**Post date:** [22 July 2020 11:08 UTC](https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539/3 "2020-07-22T11:08:22Z")

</div>

ok thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 September 2020 11:08 UTC](https://discourse.nodered.org/t/flow-and-global-variables-inaccessible-when-using-dot-notation/30539/4 "2020-09-20T11:08:33Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
