# Button on dashboard 2.0 cannot retrieve flow or global context data

**URL:** <https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908>\
**Category:** FlowFuse\
**Tags:** dashboard-2\
**Created:** [26 February 2024 03:06 UTC](https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908 "2024-02-26T03:06:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anmirazik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/anmirazik/32/87890_2.png) [@Anmirazik](https://discourse.nodered.org/u/Anmirazik)\
**Post date:** [26 February 2024 03:06 UTC](https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908/1 "2024-02-26T03:06:50Z")

</div>

Hello , I used button on dashboard 2.0 and not able to retrieve the flow/global context variable through the button node ? I believe this is a bug because the button node on dashboard 1.0 it works just fine

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/0/10660b88209b1fbc1432cfbfe26367066449ebee.png)

Above image are my global context

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/dfd10b524fe89fcc10bfd59c41b209a3741bf9dc.png)

Above image are my dashboard 2.0

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e700a2f639ea2138205830f0d1bf11a24ae0de38.png)

This is the output when i try to retrieve the value using the button on dashboard 2.0

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b205f8dae9e5978c565290d3f61bbbbacb06f20b.png)

This the the dashboard flows

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d72622bb57ef293a84789d0cfd9afad4da956c1.png)

as you can see , on dashboard 1.0 it works but not on dashboard 2.0 . can anyone help clarified this issues ? Thanks

---

<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:** [26 February 2024 09:53 UTC](https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908/2 "2024-02-26T09:53:54Z")

</div>

Hi @Anmirazik

Can you share the relevant bit of the flow, or show how exactly you have configured the button node?

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [26 February 2024 22:19 UTC](https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908/3 "2024-02-26T22:19:20Z")

</div>

I thought I had fixed this in [UI Button - Ensure payload is set when type is flow/global by joepavitt · Pull Request #492 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/pull/492)

Can you confirm which version of `@flowfuse/node-red-dashboard` you are using please?

---

<div class="post-metadata">

**Author:** ![Anmirazik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/anmirazik/32/87890_2.png) [@Anmirazik](https://discourse.nodered.org/u/Anmirazik)\
**Post date:** [27 February 2024 00:10 UTC](https://discourse.nodered.org/t/button-on-dashboard-2-0-cannot-retrieve-flow-or-global-context-data/85908/4 "2024-02-27T00:10:09Z")

</div>

My bad , I'm using version 0.11.3 , By default it installs that version , I need to update to version 1.20 and the issues are fixed , Thank you
