# Group Name using an environment variable

**URL:** <https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253>\
**Category:** General\
**Created:** [22 June 2022 21:33 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253 "2022-06-22T21:33:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojgithub](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mojgithub/32/63532_2.png) [@mojgithub](https://discourse.nodered.org/u/mojgithub)\
**Post date:** [22 June 2022 21:33 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253/1 "2022-06-22T21:33:56Z")

</div>

HI

Does Group Name supports an environment variable?

If Yes.. how can i use it? My code doesnt work.

![var](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6aa347f46e7c2fb55de404cb27e2a27452d49a13.png)

---

<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 June 2022 21:46 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253/2 "2022-06-22T21:46:18Z")

</div>

As with all node properties, unless it uses our TypedInput widget and explicitly supports the 'env' type, then your only option is to set the entire field with an env var `"${NODE_ID}"`. You cannot use it to insert env vars into the middle of the value.

---

<div class="post-metadata">

**Author:** ![mojgithub](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mojgithub/32/63532_2.png) [@mojgithub](https://discourse.nodered.org/u/mojgithub)\
**Post date:** [23 June 2022 15:19 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253/3 "2022-06-23T15:19:50Z")

</div>

Hi, tnx for replay.

I have tested now with replacing whole value. Check images. But it still shows variable name instead of value. So i guess i will skip subflows and use standard flows which work.

 ![s1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a2e88b4dac99d5c43f1e3237ef8e3b5e85b91cf.png)  
 ![s2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/1/81344ee91a2dd493d30288c6c1358e3ed2f01d16.png)  
 ![s3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5e462fadb96b10c27e42f3b1df13abe0e1dd791.png)

---

<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:** [23 June 2022 15:40 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253/4 "2022-06-23T15:40:16Z")

</div>

Dashboard nodes in general do not play nice with subflows as there is no way to do layout.

In short, dont put dashboard nodes in a subflow

---

<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:** [22 August 2022 15:40 UTC](https://discourse.nodered.org/t/group-name-using-an-environment-variable/64253/5 "2022-08-22T15:40:48Z")

</div>

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