# Context not working for name

**URL:** <https://discourse.nodered.org/t/context-not-working-for-name/31155>\
**Category:** General\
**Created:** [5 August 2020 01:13 UTC](https://discourse.nodered.org/t/context-not-working-for-name/31155 "2020-08-05T01:13:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 August 2020 06:21 UTC](https://discourse.nodered.org/t/context-not-working-for-name/31155/3 "2020-08-05T06:21:29Z")

</div>

> [@Trying\_to\_learn](#):
>
> Why isn't `myDeviceName` seen in the context?

Read the section underneath the part you marked with the red triangle.

> // `global.keys()` returns a list of all properties set in global context.  
> // This allows them to be displayed in the Context Sidebar within the editor.  
> // In some circumstances it is not desirable to expose them to the editor. The  
> // following property can be used to hide any property set in `functionGlobalContext`  
> // from being list by `global.keys()`.  
> // By default, the property is set to false to avoid accidental exposure of  
> // their values. Setting this to true will cause the keys to be listed.  
> exportGlobalContextKeys: false,

Change exportGlobalContextKeys to true.

See also the [discussion here](https://discourse.nodered.org/t/feedback-wanted-hiding-functionglobalcontext-from-context-sidebar/8106)

---

_[View the full topic](https://discourse.nodered.org/t/context-not-working-for-name/31155)._
