# Question regarding \_msgid

**URL:** <https://discourse.nodered.org/t/question-regarding-msgid/57781>\
**Category:** Developing Nodes\
**Created:** [4 February 2022 17:54 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781 "2022-02-04T17:54:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 February 2022 17:54 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781/1 "2022-02-04T17:54:22Z")

</div>

Never noticed this before but would like to know whether it is the intended output.

When I use `send` in my node, if I send multiple messages as in `send([{payload:1},{payload:2},{payload:3}]` - All of the sent messages have the same `_msgid`.

Not necessarily a problem but worth understanding if this is the intention.

Thanks, J.

---

<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:** [4 February 2022 18:47 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781/2 "2022-02-04T18:47:17Z")

</div>

Yes, that is the intent. Any message sent that doesn't have its own msgid will inherit the id of the message that triggered it.

That allows the messages to be traced through the flow.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 February 2022 19:58 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781/3 "2022-02-04T19:58:46Z")

</div>

Sorry, I should have explained better. This is in a new node for uibuilder that does caching. As such, I remove the \_msgid when storing in the cache. So in fact, the send function is putting a new \_msgid on all messages and it is the same id.

That's OK though, the concept is clearly the same and as long as I know, that's fine.

Thanks.

---

<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:** [5 April 2022 19:59 UTC](https://discourse.nodered.org/t/question-regarding-msgid/57781/4 "2022-04-05T19:59:02Z")

</div>

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