# Get flow name in function-node

**URL:** <https://discourse.nodered.org/t/get-flow-name-in-function-node/39429>\
**Category:** General\
**Created:** [20 January 2021 11:25 UTC](https://discourse.nodered.org/t/get-flow-name-in-function-node/39429 "2021-01-20T11:25:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [20 January 2021 11:25 UTC](https://discourse.nodered.org/t/get-flow-name-in-function-node/39429/1 "2021-01-20T11:25:26Z")

</div>

Hi,  
I want to get the name of the flow (e.g. "Flow3") that a function node is working in.  
(in this case: lets assume functionnode is part of Flow3)  
Is there any possibility to get that name?

---

<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:** [20 January 2021 11:40 UTC](https://discourse.nodered.org/t/get-flow-name-in-function-node/39429/2 "2021-01-20T11:40:32Z")

</div>

Hi,

no the flow name/id is not exposed in the Function node.

A full reference of it available in the Function node is here: [Writing Functions : Node-RED](https://nodered.org/docs/user-guide/writing-functions#api-reference)

---

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [20 January 2021 20:28 UTC](https://discourse.nodered.org/t/get-flow-name-in-function-node/39429/3 "2021-01-20T20:28:47Z")

</div>

Ok, I hoped that there is a "hidden solution" to do so 😉  
Thank you Nick for your response 🙂

---

<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:** [21 March 2021 20:28 UTC](https://discourse.nodered.org/t/get-flow-name-in-function-node/39429/4 "2021-03-21T20:28:51Z")

</div>

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