# NODE.SEND use of multiple outputs

**URL:** https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453
**Category:** General
**Tags:** function-node
**Created:** [6 March 2022 20:11 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453 "2022-03-06T20:11:52Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![StrongTown](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@StrongTown](https://discourse.nodered.org/u/StrongTown)
#### Post date: [6 March 2022 20:11 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/1 "2022-03-06T20:11:52Z")

</div>

Is it possible to have `node.send` use an output other then 1? As example I find the following does nothing.

```auto
msg = {payload: "Hello World"};
node.send(null, msg);

```

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [6 March 2022 20:16 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/2 "2022-03-06T20:16:40Z")

</div>

Yes if you use an array

```auto
node.send([null, msg]);

```

---

<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: [6 March 2022 20:18 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/3 "2022-03-06T20:18:37Z")

</div>

The docs for the Function node are here: [Writing Functions : Node-RED](https://nodered.org/docs/user-guide/writing-functions#multiple-messages)

Where it describes sending multiple messages by returning an array, can also be applied to using `node.send()` by passing it an array.

---

<div class="post-metadata">

### Author: ![StrongTown](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@StrongTown](https://discourse.nodered.org/u/StrongTown)
#### Post date: [6 March 2022 20:24 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/4 "2022-03-06T20:24:04Z")

</div>

`E1cid` interesting. I thought that'd send 2 msgs on output 1. Thanks.

`knolleary` thank you. If anyone has some spare time in future (I know, who does?) my ask would be for a search capability on that site.

Thanks to you both for your help.

EDIT: BTW, is there a listing or doc of valid node commands anywhere?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [6 March 2022 21:46 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/5 "2022-03-06T21:46:46Z")

</div>

> [@StrongTown](#):
>
> I thought that'd send 2 msgs on output 1

Has that now been explained by looking at the docs?

---

<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 March 2022 21:54 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/6 "2022-03-06T21:54:48Z")

</div>

> [@StrongTown](#):
>
> my ask would be for a search capability on that site

Here you go

[www.google.com?q=site:nodered.org multiple outputs](https://www.google.com/search?q=site%3Anodered.org+multiple+outputs)

---

<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: [6 March 2022 22:12 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/7 "2022-03-06T22:12:00Z")

</div>

> [@StrongTown](#):
>
> EDIT: BTW, is there a listing or doc of valid node commands anywhere?

Just so you know, if you edit a reply then people who have already read your original reply won't know you've asked a new question.

I provided a link to the docs in my reply. At the bottom of that page is the API reference for the Function node - [Writing Functions : Node-RED](https://nodered.org/docs/user-guide/writing-functions#api-reference)

---

<div class="post-metadata">

### Author: ![StrongTown](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@StrongTown](https://discourse.nodered.org/u/StrongTown)
#### Post date: [7 March 2022 01:23 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/8 "2022-03-07T01:23:33Z")

</div>

Ok. Thanks. I'm still learning and appreciate the help.

---

<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 2022 01:24 UTC](https://discourse.nodered.org/t/node-send-use-of-multiple-outputs/59453/9 "2022-03-21T01:24:28Z")

</div>

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