Hi to all,
I have a trivial problem, but I need help to solve it.
At the end of my flow, my bot creates an Output file with this name:
“output_ + Now.tostring (” dd.MM.yyyy “). xlsx.”
Every day the bot creates a file of this type, increasing the number of files in the folder.
I need to create a rule that deletes files older than 2 days.
I cannot rely on the creation date, because the folder contains other files that must not be deleted, so it must take the date from the name.
Can you try to modify Substring(7) to SubString(14) because prefix is changed from “Output_” to “Output_Credit_”?
If prefix will be change in the future, it might be better to use regex instead of substring.