# Is it possible to change config node properties from within a flow?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503>\
**Category:** Developing Nodes\
**Created:** [24 October 2022 21:04 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503 "2022-10-24T21:04:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![windkh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/windkh/32/4713_2.png) [@windkh](https://discourse.nodered.org/u/windkh)\
**Post date:** [24 October 2022 21:04 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503/1 "2022-10-24T21:04:19Z")

</div>

Hi all,  
I would like to change a property of the config node during runtime.  
The idea is that the node can be reconfigured during runtime and the values should be persisted.

Let's take the following use-case: I want to turn on the logging flag during runtime using a msg:

```auto
msg.payload.logging = true;

```

This message is received in my node and the logging flag is written to the config node.

```auto
this.on('input', function (msg) {
    node.config.logging = msg.payload.logging;
    // and now???
}

```

So far so good, that works during runtime, but the changes are lost when I restart node-red.

Question:  
How can I make sure that the changed logging flag is persisted?

Any help is welcome!  
/KH

---

<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:** [23 December 2022 21:05 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-config-node-properties-from-within-a-flow/69503/2 "2022-12-23T21:05:02Z")

</div>

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