# How to can i store msg.payload in node red

**URL:** <https://discourse.nodered.org/t/how-to-can-i-store-msg-payload-in-node-red/32743>\
**Category:** General\
**Created:** [11 September 2020 12:04 UTC](https://discourse.nodered.org/t/how-to-can-i-store-msg-payload-in-node-red/32743 "2020-09-11T12:04:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [11 September 2020 12:40 UTC](https://discourse.nodered.org/t/how-to-can-i-store-msg-payload-in-node-red/32743/7 "2020-09-11T12:40:52Z")

</div>

I have remembered you were asking about this same project a couple months ago here: [Copying my Door control status back to my Mysql databse](https://discourse.nodered.org/t/copying-my-door-control-status-back-to-my-mysql-databse/30383)

You also have this thread from earlier today: [How to calculate 2 msg.id coming from 2 pub different topics simulataneously](https://discourse.nodered.org/t/how-to-calculate-2-msg-id-coming-from-2-pub-different-topics-simulataneously/32730)

If you have two separate messages arriving from MQTT nodes and you need to compare them, you need to get both values into a single message. I pointed you at a recipe for doing that here: [How to calculate 2 msg.id coming from 2 pub different topics simulataneously](https://discourse.nodered.org/t/how-to-calculate-2-msg-id-coming-from-2-pub-different-topics-simulataneously/32730/2)

It is not clear if you have tried anything we have suggested. If there is something you are not sure about, please ask - but please read the material we point you at first.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-can-i-store-msg-payload-in-node-red/32743)._
