# Set flow context with JSONata

**URL:** https://discourse.nodered.org/t/set-flow-context-with-jsonata/56230
**Category:** General
**Created:** [6 January 2022 23:13 UTC](https://discourse.nodered.org/t/set-flow-context-with-jsonata/56230 "2022-01-06T23:13:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bigfeetneedbigboots](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bigfeetneedbigboots/32/33216_2.png) [@bigfeetneedbigboots](https://discourse.nodered.org/u/bigfeetneedbigboots)
#### Post date: [6 January 2022 23:13 UTC](https://discourse.nodered.org/t/set-flow-context-with-jsonata/56230/1 "2022-01-06T23:13:05Z")

</div>

I use the JSONata $flowContext function a lot to GET values from the flow context store but can I use this or a different JSONata function to SET values into flow context stores? I'm aware of how to do this with a flow.set in a function node or set in a change node but I am trying to do more with JSONata.

---

<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: [7 January 2022 00:09 UTC](https://discourse.nodered.org/t/set-flow-context-with-jsonata/56230/2 "2022-01-07T00:09:21Z")

</div>

No - context is read-only with JSONata.

---

<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: [21 January 2022 00:10 UTC](https://discourse.nodered.org/t/set-flow-context-with-jsonata/56230/3 "2022-01-21T00:10:01Z")

</div>

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