# How to msg object from one flow to otherS?

**URL:** <https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090>\
**Category:** General\
**Created:** [24 October 2019 13:16 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090 "2019-10-24T13:16:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [24 October 2019 13:16 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090/1 "2019-10-24T13:16:35Z")

</div>

Hey my friends,  
I have a message objects (created by pir motion sensors) and want to foraward them to other flows (light switch). My idea was to just take a simple subflow with input and output. But I noticed that the subflow output does not push the msg to other flows. It just forwars to the the flow where msg was created. - How can I push to all nodes of the subflow ?  
[click me](http://puu.sh/EwnB6/61953e77c6.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:** [24 October 2019 13:20 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090/2 "2019-10-24T13:20:19Z")

</div>

> [@WhiteLion](#):
>
> But I noticed that the subflow output does not push the msg to other flows

Hi,

Im not sure what you mean by this. The output of a subflow will send messages to whatever it is connected to.

Do you mean you expect it to send on the output of all instances of the particular subflow? If so, then that isn't how subflows work.

Have a look at the Link nodes - they can be used to pass messages around to other flows.

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [24 October 2019 13:35 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090/3 "2019-10-24T13:35:42Z")

</div>

I expected to send the msg to all implemented instances of the subflow. So if this is not possible with subflows how can do this: [click me](http://puu.sh/EwnSv/4b2f44a721.png)

So I need a way to forward message objects form n flows to m flows ...

---

<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:** [24 October 2019 13:39 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090/4 "2019-10-24T13:39:56Z")

</div>

So it does sound like you want to use the Link nodes as I suggest

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [24 October 2019 13:53 UTC](https://discourse.nodered.org/t/how-to-msg-object-from-one-flow-to-others/17090/5 "2019-10-24T13:53:04Z")

</div>

thanx! that worked !
