# Trigger a flow from other flow (instead of polling)

**URL:** https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177
**Category:** General
**Created:** [6 February 2025 10:45 UTC](https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177 "2025-02-06T10:45:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![node\_red2025](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@node\_red2025](https://discourse.nodered.org/u/node_red2025)
#### Post date: [6 February 2025 10:45 UTC](https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177/1 "2025-02-06T10:45:43Z")

</div>

In Flow 1 I have a function which calculates stuff and then returns a msg with some content.

```auto
 msg.payload = 2;
 msg.text = "State 10 reached";
 return msg;

```

In the second flow I have a periodic trigger which checks the state of a variable every minute.  
Now I want to trigger this second flow from the function body from flow 1. I tried of course to educate myself but got stuck.

Reason that I want it to trigger instead of polling is that flow 2 should start immediately after in flow 1 that condition is reached.

---

<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: [6 February 2025 11:01 UTC](https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177/2 "2025-02-06T11:01:21Z")

</div>

Hi, welcome to the forum.

Cant you just use a `link-out` (attached to the function that calculates) connected to a `link-in` node attached to the 2nd flow where you want to trigger something?

you can always add a `filter` node that checks the value has actually changed.

---

<div class="post-metadata">

### Author: ![node\_red2025](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@node\_red2025](https://discourse.nodered.org/u/node_red2025)
#### Post date: [6 February 2025 11:19 UTC](https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177/3 "2025-02-06T11:19:42Z")

</div>

Perfect, exactly what was looking for! Thanks!

---

<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: [20 February 2025 11:20 UTC](https://discourse.nodered.org/t/trigger-a-flow-from-other-flow-instead-of-polling/95177/4 "2025-02-20T11:20:21Z")

</div>

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