Create file with variable name under 0.19.4

Hello everyone,

does anyone know how I can assign a file name with a variable in Node-Red version 0.19.4.
I want to write a file with a dynamic file name that contains the date.
The variable works, I can read it with debug and see it among the variables. For example: g_filename: xyz_2025-04-09.txt
If I enter the variable in the file node, the file is created with the variable name 'g_filename' and not with the generated variable 'xyz_2025-04-09.txt'.
In the newer versions this works without problems. Does anyone know the trick in the old version 0.19.4?
Oh yes .... an update is not an option :wink: true to the motto: never touch a running system!!!

Thanks already
Roland

what does the nodes built in help say?

Inputs

filename string
if not set in the node configuration, this property sets the filename to read.

i.e. leave it blank, ensure your file name is set in msg.filename

1 Like

Hello Steve-Mcl

that was easy
so it works as desired

Thank you very much for the help!!!

Greetings
Roland

1 Like

PS:

Yeah, if it works, dont change it. :oncoming_fist:

Because nothing bad could ever happen /s

:wink:

1 Like

the system has no external access,
I use it to control my heating and a few other things.

But you can never be sure! :roll_eyes: :see_no_evil_monkey: