# Passing link name to receiver link node to determine source

**URL:** <https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018>\
**Category:** Feature Requests\
**Created:** [1 May 2022 08:29 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018 "2022-05-01T08:29:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![svefro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/svefro/32/4306_2.png) [@svefro](https://discourse.nodered.org/u/svefro)\
**Post date:** [1 May 2022 08:29 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018/1 "2022-05-01T08:29:10Z")

</div>

I have many nodes that go to a common link in node to get logged to a database.  
All the link out nodes have names and i wanted this to show in the log.

i see that the link in node gets a property called "\_event" with "node:NODEID" in it.

Right now i have to open my own flows.json and locate the node and extract the name from it manually.  
I think it would be better if the link in node gets the name directly and put it in a property called "source\_name"/"link\_name" or something like that.

is that possible?

---

<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 May 2022 08:55 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018/2 "2022-05-01T08:55:44Z")

</div>

That would make sense. We can get the done for 3.0

---

<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:** [1 May 2022 10:22 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018/3 "2022-05-01T10:22:02Z")

</div>

Should this be an array in case multiple links are passed through?

---

<div class="post-metadata">

**Author:** ![svefro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/svefro/32/4306_2.png) [@svefro](https://discourse.nodered.org/u/svefro)\
**Post date:** [2 May 2022 04:03 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018/4 "2022-05-02T04:03:44Z")

</div>

Great!  
Also another thing that would be helpful to me at least is another property called tag or something like that.

Usually when i use the link nodes i have a change or function node before it so that i can add some custom property's to the message.

Adding another property to the link node would make it possible to eliminate this.

i could then use the link node to add any extra info to the message. like "door\_sensor" or "motion\_sensor"

it would also make sense to be able to group by this in the link in node and not by witch tab it comes from

---

<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:** [1 July 2022 04:03 UTC](https://discourse.nodered.org/t/passing-link-name-to-receiver-link-node-to-determine-source/62018/5 "2022-07-01T04:03:52Z")

</div>

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