# Dynamic filename in File node

**URL:** <https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025>\
**Category:** General\
**Created:** [16 June 2022 16:04 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025 "2022-06-16T16:04:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![el\_pablo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/el_pablo/32/45496_2.png) [@el\_pablo](https://discourse.nodered.org/u/el_pablo)\
**Post date:** [16 June 2022 16:04 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/1 "2022-06-16T16:04:57Z")

</div>

Hi guys,

Is it possible to put dynamic content in a node field without having a function node as an input?

Eg. I have a `flow.chartTempFname` variable. I would like to insert it in the `Filename` field. Do I have to use a function node as an input or there's an existing syntax such as `$$flow("chartTempFname")` to get the context variable?

 ![firefox_cIf1qfqT29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/c/cc4f9f744d2deb4344d84770b8a325e7597f30af.png)

Thanks

---

<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:** [16 June 2022 16:07 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/2 "2022-06-16T16:07:51Z")

</div>

You set it either in the node, or by passing in `msg.filename`. You can use a Change node set `msg.filename` to whatever you want dynamically.

You cannot set it via context directly in the node.

---

<div class="post-metadata">

**Author:** ![el\_pablo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/el_pablo/32/45496_2.png) [@el\_pablo](https://discourse.nodered.org/u/el_pablo)\
**Post date:** [16 June 2022 16:09 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/3 "2022-06-16T16:09:10Z")

</div>

Ok, I needed a confirmation that there's is no shortcut for my needs.

Thanks!

---

<div class="post-metadata">

**Author:** ![el\_pablo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/el_pablo/32/45496_2.png) [@el\_pablo](https://discourse.nodered.org/u/el_pablo)\
**Post date:** [16 June 2022 18:52 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/4 "2022-06-16T18:52:05Z")

</div>

I just noticed in one of my nodes, I see a function in the `Value format` field.

 ![firefox_w5tOOtaoui](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d53064283c6434f51b772190d57f551fdf82cc5b.png)

Where can I get documentation about this feature?

---

<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:** [16 June 2022 18:55 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/5 "2022-06-16T18:55:06Z")

</div>

Did you look at the ‘Help’ tab while the node is selected?

---

<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:** [15 August 2022 18:55 UTC](https://discourse.nodered.org/t/dynamic-filename-in-file-node/64025/6 "2022-08-15T18:55:12Z")

</div>

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