Hi,
I've created a workflow that will perform some data manipulation to several of my reports each month and I was wondering if I have to manually open up the saved workflow and change the input files to the current month reports before i run the data manipulation workflow each month.
Solved! Go to Solution.
Can you please provide a little more information about how your files are named? i.e. does the current file you wish to use contain some sort of date designation (like "File20170524")? If so, you could use a formula that comes up with the date designation based on today's date, or the date the workflow is run, and then use the Dynamic Input tool to get that specific file.
Alternatively, you might be able to use the Directory tool to bring in a list of all files in the source folder, then filter down for the most recent date in the LastWriteTime field (or CreationTime field). Then feed that file name into the Dynamic Input tool.
Let us know which scenario seems like the better fit, and if you can provide some dummy data, we can help model it in a little more detail? Thanks!
NJ
Hi Nicole,
Like you mentioned, the naming convention of the reports are identical except for the date (FileA201703, FileAReport201704, etc). Can you provide a link (if available) where I can read up on the formula approach or directory tool approach to gain a better understanding?
Here is a link to the Alteryx Help topic about the Dynamic Input tool:
https://help.alteryx.com/11.0/index.htm#DynamicInput.htm
As for the formula to get the file name and how that might work with Dynamic Input, I attached something pretty basic that should work:
Hope that helps! Let us know if you run into any more roadblocks or need some more assistance with Dynamic Input & formulas... Cheers!
NJ
User | Count |
---|---|
19 | |
15 | |
13 | |
9 | |
8 |