I have a file being saved from the web, I want to save it in count form, for example.
I saved the first time and I want to save it by putting the last number in the count form, the file name is 2021_06_, I want to put a number at the end to show the count, for example 2021_06_1 second time, save 2021_06_2
the third time you save 2021_06_3, always count the last number.
I think, I see what is going on here…everytime when you add the count files count in the folder also increases. So when you loop next time you will get both the files…so we have to take recent file and extract the count from it and then add +1 to it…
Give me sometime. i will develop the workflow and share it…
Now…my code will copy the file from input folder(you can put your download activity here) and rename it to
2nd Run - Since there is file exist in the folder…I will look for a recent file based on the create time and extract the counter value from the recent file…and then using Copy file activity(Add your download activity here) I am renaming it.
Note: I have removed all the files from the OutputFiles folder. Run the workflow as is and you will see how the file gets created in the outputfiles folder. Once you understood what is happening. You can easily tweak this workflow as per your need.