# Custom Node with multiple outputs

**URL:** <https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173>\
**Category:** General\
**Created:** [9 August 2019 15:15 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173 "2019-08-09T15:15:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stamer/32/3464_2.png) [@stamer](https://discourse.nodered.org/u/stamer)\
**Post date:** [9 August 2019 15:15 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173/1 "2019-08-09T15:15:07Z")

</div>

Hi,

I am developing a Custom Node and I want to have 2 outputs. Is this possible?  
I've tried, but have not luck..

Many thanks.

---

<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 August 2019 15:27 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173/2 "2019-08-09T15:27:41Z")

</div>

Hi @stamer

yes it is possible. There is nothing special about the core nodes that allow them to have multiple outputs and other nodes not to.

What exactly have you tried?

Nick

---

<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:** [9 August 2019 15:59 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173/3 "2019-08-09T15:59:15Z")

</div>

Yes it is possible...

### Snippet from [https://nodered.org/docs/creating-nodes/first-node](https://nodered.org/docs/creating-nodes/first-node) (modified)

```auto
    RED.nodes.registerType('lower-case',{
        category: 'function',
        color: '#a6bbcf',
        defaults: {
            name: {value:""}
        },
        inputs:1,
        outputs:2, // << #### set no of outputs here ####
        icon: "file.png",
        label: function() {
            return this.name||"lower-case";
        }
    });

```

---

<div class="post-metadata">

**Author:** ![stamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stamer/32/3464_2.png) [@stamer](https://discourse.nodered.org/u/stamer)\
**Post date:** [9 August 2019 16:49 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173/4 "2019-08-09T16:49:40Z")

</div>

Many thanks for the fast answer. It was my fault. ☹

---

<div class="post-metadata">

**Author:** ![stamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stamer/32/3464_2.png) [@stamer](https://discourse.nodered.org/u/stamer)\
**Post date:** [9 August 2019 16:52 UTC](https://discourse.nodered.org/t/custom-node-with-multiple-outputs/14173/5 "2019-08-09T16:52:10Z")

</div>

The payload was formatted incorrectly. ☹
