# Transfer messages between nodes without wires programmatically

**URL:** <https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825>\
**Category:** General\
**Created:** [31 October 2022 11:11 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825 "2022-10-31T11:11:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [31 October 2022 11:11 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/1 "2022-10-31T11:11:21Z")

</div>

Hi all,  
Newbie here I want to retry a msg after an error throws up. Is there any way to use the nodeid and msg.payload from the catch node to trigger the failed node programmatically in the flow without linking them over wires,link nodes or context ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/755c435c697586dbc92cba044a7559b7b8c0de14.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:** [31 October 2022 11:15 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/2 "2022-10-31T11:15:00Z")

</div>

Not directly, no.

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [31 October 2022 11:20 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/3 "2022-10-31T11:20:51Z")

</div>

Hi @knolleary ,  
Thanks for the prompt reply. Can you suggest the best practice to handle error retry scenario in large flows ?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [31 October 2022 11:53 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/4 "2022-10-31T11:53:58Z")

</div>

As you have suggested the two methods are Wires if you want visible readability. Links if not.

---

<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:** [31 October 2022 14:17 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/5 "2022-10-31T14:17:35Z")

</div>

> [@Josh](#):
>
> Can you suggest the best practice to handle error retry scenario in large flows ?

You might find this flow useful. It can be used to queue up messages till they are successfully processed (for example sending to API or email for example). All you have to be able to do is to provide an OK or FAIL result when the message is processed. If it FAILs then it will automatically be retried after a configurable timeout.  
[https://flows.nodered.org/flow/05e6d61f14ef6af763ec4cfd1049ab61](https://flows.nodered.org/flow/05e6d61f14ef6af763ec4cfd1049ab61)

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [1 November 2022 05:19 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/6 "2022-11-01T05:19:28Z")

</div>

Thanks colin. Let me try that.

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [2 November 2022 10:01 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/7 "2022-11-02T10:01:17Z")

</div>

Hi @Colin The flow example worked. Thanks for the flow.

---

<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:** [16 November 2022 10:02 UTC](https://discourse.nodered.org/t/transfer-messages-between-nodes-without-wires-programmatically/69825/8 "2022-11-16T10:02:02Z")

</div>

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