I have designed a custom Node-RED node with a filename
parameter, which is currently parsed as a plain string.
I would like to allow this parameter to accept dynamic values—for example, by referencing a property defined in a subflow (e.g., msg.filename
or a subflow environment variable).
What’s the best way to achieve this?
Ideally, the custom node should support both:
- static strings (e.g.,
/data/file.csv
), and - dynamic expressions (e.g.,
msg.filename
orflow.filename
) that are evaluated at runtime.
How should I implement this in the custom node to support both modes?