# How to get flow id by function node

**URL:** <https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889>\
**Category:** General\
**Created:** [8 April 2019 05:31 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889 "2019-04-08T05:31:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![qgc007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/qgc007/32/7362_2.png) [@qgc007](https://discourse.nodered.org/u/qgc007)\
**Post date:** [8 April 2019 05:31 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/1 "2019-04-08T05:31:59Z")

</div>

how to get flow id by function node?  
the way get node id:  
 ![nodered1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7ebf55ecfe5b6d858ddbd1590257e9db957ba035.png)

---

<div class="post-metadata">

**Author:** ![qgc007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/qgc007/32/7362_2.png) [@qgc007](https://discourse.nodered.org/u/qgc007)\
**Post date:** [9 April 2019 05:58 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/2 "2019-04-09T05:58:53Z")

</div>

hao to get flow id ， nobody know it ？  
🤔

---

<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:** [9 April 2019 06:48 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/3 "2019-04-09T06:48:09Z")

</div>

The flow id is not available in the function.

This was asked a few months ago and someone shared a flow that used the admin http API to get the flow configuration and, from that, find the flow id. If you search the forum you may be able to find it.

---

<div class="post-metadata">

**Author:** ![qgc007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/qgc007/32/7362_2.png) [@qgc007](https://discourse.nodered.org/u/qgc007)\
**Post date:** [10 April 2019 01:23 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/4 "2019-04-10T01:23:23Z")

</div>

thank you very much

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [10 April 2019 03:12 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/5 "2019-04-10T03:12:58Z")

</div>

> [@knolleary](#):
>
> This was asked a few months ago and someone shared a flow that used the admin http API to get the flow configuration and, from that, find the flow id. If you search the forum you may be able to find it.

Probably something like below:

 ![r-02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/042a33ac3a98d40c60eb206fd89133a0aba98568.png)

```auto
[{"id":"c6102b2d.d908e8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"dda94d1c.3a07a","type":"change","z":"c6102b2d.d908e8","name":"jsonata filter","rules":[{"t":"set","p":"filter","pt":"msg","to":"payload[type = 'tab']","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":140,"wires":[["f5dc667c.ac8108"]]},{"id":"1624601c.23f32","type":"inject","z":"c6102b2d.d908e8","name":"","topic":"flows","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":140,"wires":[["312ff7a6.7dd008"]]},{"id":"f5dc667c.ac8108","type":"debug","z":"c6102b2d.d908e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"filter","targetType":"msg","x":600,"y":140,"wires":[]},{"id":"312ff7a6.7dd008","type":"http request","z":"c6102b2d.d908e8","name":"Get {{{topic}}}","method":"GET","ret":"obj","paytoqs":false,"url":"http://localhost:1880/{{{topic}}}","tls":"","proxy":"","authType":"basic","x":260,"y":140,"wires":[["dda94d1c.3a07a"]]}]

```

---

<div class="post-metadata">

**Author:** ![qgc007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/qgc007/32/7362_2.png) [@qgc007](https://discourse.nodered.org/u/qgc007)\
**Post date:** [10 April 2019 03:23 UTC](https://discourse.nodered.org/t/how-to-get-flow-id-by-function-node/9889/6 "2019-04-10T03:23:30Z")

</div>

thank you very much 😍  
勉強になりました
