# How to automatically change file name based in a variable "job number"

**URL:** <https://discourse.nodered.org/t/how-to-automatically-change-file-name-based-in-a-variable-job-number/38723>\
**Category:** General\
**Created:** [7 January 2021 15:24 UTC](https://discourse.nodered.org/t/how-to-automatically-change-file-name-based-in-a-variable-job-number/38723 "2021-01-07T15:24:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 January 2021 21:54 UTC](https://discourse.nodered.org/t/how-to-automatically-change-file-name-based-in-a-variable-job-number/38723/6 "2021-01-07T21:54:49Z")

</div>

Your flow is corrupt.  
please read

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

I will also need what the inputs are asand what you want the output to loko like.  
please add some debug outputs of the inputs, etc

---

_[View the full topic](https://discourse.nodered.org/t/how-to-automatically-change-file-name-based-in-a-variable-job-number/38723)._
