# Changing Link Out Destination at Run Time

**URL:** https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656
**Category:** General
**Created:** [1 April 2022 18:52 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656 "2022-04-01T18:52:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cabh](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@cabh](https://discourse.nodered.org/u/cabh)
#### Post date: [1 April 2022 18:52 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656/1 "2022-04-01T18:52:30Z")

</div>

I am wondering if there is a way to change the out link (or property Links) at runtime. I attempted to set the 'Link' property to a specific Node ID in the Flow I want to trigger (as a test). Does this have to be a Jason object instead of a direct value?

The reason is that while I could create a function that could go to different outputs and hence Link out objects, it would be hard coded. So the goal is to enable a flow to be called at run time...if that flow has a link in object to sink the call to.

Thx for any input or direction

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: [1 April 2022 19:36 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656/2 "2022-04-01T19:36:37Z")

</div>

Not currently, but it is a feature coming in Node-RED 3.0 in the next month or so.

> <https://github.com/node-red/node-red/pull/3463>
>
> closes #3441
> fixes #3404
> 
> 
> \## Types of changes
> \- \[\] Bugfix (non-breaking c…hange which fixes an issue)
> \- \[x\] New feature (non-breaking change which adds functionality)
> 
> 
> \## Proposed changes
> 
> Add dynamic link call as discussed in #3441 
> 
> \### NOTE: 1 test "should call link-in node by name in subflow" is currently commented out in the test spec file due to issue running tests with a subflow
> 
> 
> \## Checklist
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
> \- \[x\] For non-bugfix PRs, I have discussed this change on the forum/slack team.
> \- \[x\] I have run \`grunt\` to verify the unit tests pass
> \- \[x\] I have added suitable unit tests to cover the new/changed functionality

---

<div class="post-metadata">

### Author: ![cabh](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@cabh](https://discourse.nodered.org/u/cabh)
#### Post date: [1 April 2022 21:01 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656/3 "2022-04-01T21:01:17Z")

</div>

Very cool...thanks. For function with multiple outputs will work. Adding that will create a powerful dynamic ability...thanks again

---

<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: [31 May 2022 21:02 UTC](https://discourse.nodered.org/t/changing-link-out-destination-at-run-time/60656/4 "2022-05-31T21:02:05Z")

</div>

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