# Juntar dos msg.payload

**URL:** https://discourse.nodered.org/t/juntar-dos-msg-payload/45888
**Category:** General
**Created:** [19 May 2021 03:03 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888 "2021-05-19T03:03:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![carmar19](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carmar19/32/27468_2.png) [@carmar19](https://discourse.nodered.org/u/carmar19)
#### Post date: [19 May 2021 03:03 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888/1 "2021-05-19T03:03:49Z")

</div>

Good evening group I am new but trying to learn this beautiful program and with the help of you and your examples I have managed to understand how some things work here, well going to the topic I would like you to help me or if it is possible to do what I want, I made you a optional server so far the communication between the client and the server ok I am reading two variables that took them to a function node where I want to have them separately and unite them in a single msg.payload I do not know if that is possible in the images you can Observe what I want to do, separately it works correctly for me but when trying to put them together it generates an error I hope you can help me, thank you

 ![Captura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/639b4b714a5cd39e8656270fc403ed8f8567adc9.png)  
 ![Captura_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/98c92a3998e333959b656afcffc90b50b8463b48.png)

---

<div class="post-metadata">

### Author: ![Joaovitor](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Joaovitor](https://discourse.nodered.org/u/Joaovitor)
#### Post date: [19 May 2021 03:40 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888/2 "2021-05-19T03:40:04Z")

</div>

if you want to join two messages in one, just use the "join" node.

See this help document: [Create a single message from separate streams of messages : Node-RED](https://cookbook.nodered.org/basic/join-streams)

I hope it helps 😀

---

<div class="post-metadata">

### Author: ![carmar19](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carmar19/32/27468_2.png) [@carmar19](https://discourse.nodered.org/u/carmar19)
#### Post date: [19 May 2021 05:03 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888/3 "2021-05-19T05:03:24Z")

</div>

I will try Joaovitor but as I do for the chatid to an entry and ek content to the other as I define that, you could help me there.

---

<div class="post-metadata">

### Author: ![carmar19](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carmar19/32/27468_2.png) [@carmar19](https://discourse.nodered.org/u/carmar19)
#### Post date: [19 May 2021 06:32 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888/4 "2021-05-19T06:32:56Z")

</div>

Thanks Joaovitor and I managed to give a new topic to each variable, thanks for the help with the node that you indicated, and I'm still working.

---

<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: [18 July 2021 06:33 UTC](https://discourse.nodered.org/t/juntar-dos-msg-payload/45888/5 "2021-07-18T06:33:04Z")

</div>

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