# Store msg alone without needing to have excel ,SQLite table just by topic to payload it again to node red when needed

**URL:** <https://discourse.nodered.org/t/store-msg-alone-without-needing-to-have-excel-sqlite-table-just-by-topic-to-payload-it-again-to-node-red-when-needed/49398>\
**Category:** General\
**Created:** [5 August 2021 21:13 UTC](https://discourse.nodered.org/t/store-msg-alone-without-needing-to-have-excel-sqlite-table-just-by-topic-to-payload-it-again-to-node-red-when-needed/49398 "2021-08-05T21:13:39Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 August 2021 01:56 UTC](https://discourse.nodered.org/t/store-msg-alone-without-needing-to-have-excel-sqlite-table-just-by-topic-to-payload-it-again-to-node-red-when-needed/49398/14 "2021-08-06T01:56:52Z")

</div>

> [@UnborN](#):
>
> In the case of using Context in a Function node ..  
> you have to pass in a second parameter to the `get` and `set` methods to specify which context store you want to read or write.

You only pass two parameters when ‘set’ - then you pass the name of the context variable and the second parameter is the data (actual value, a variable, object, etc).

The ‘get’ only needs the name of the context variable.

If you have two different types of storage for the context, then you may need to specify the name of in addition.

Here is a write up explaining all this

> [@A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115):
>
> This is something I wrote up after playing with the context options. I've filed a PR with some of this added to the Node-RED documentation but thought I'd release it here also. I hope people find it useful. Paul A guide to understanding 'Persistent Context' Prior to Node-RED v0.19.0, data could be stored in context as a global, flow or node. This was stored in memory and would be reset with a restart of Node-RED. As of v.0.19.0 you can now store node, flow and global context data in memory O…

---

_[View the full topic](https://discourse.nodered.org/t/store-msg-alone-without-needing-to-have-excel-sqlite-table-just-by-topic-to-payload-it-again-to-node-red-when-needed/49398)._
