I am looking to develop a workflow that is connected to an input file (.txt) with a name that changes daily. For example, today the file could be named Random_Name_20221013_1538, and tomorrow it could be Random_Name_20221014_1536. Would anyone know how I would go about setting this up?
The remaining workflow will remain the same. I only want to be able to choose the correct input file.
Thanks!
Solved! Go to Solution.
Hi @cmStuhl
One option is to use the directory tool + order by filename desc + sample = 1 + dynamic input.
I am going to provide a proper example for you to check out.
Hey @cmStuhl, you can initially bring all files within the directory in with the Directory tool:
Then just Filter with an expression that isolates the file containing today's date in the correct format:
That isolated file then feeds into a Dynamic Input tool which takes the fullpath from the field provided by the directory tool:
Workflow is attached - you'll obviously just need to replace the filepaths etc with your own.
Yes, it did! Thank you so much!