Hello!
This is my first question to the community. Hoping someone can help.
On a daily basis we receive a “new data” xlsx file (always with a different filename) which is saved into a folder called “Raw”.
Once a week or so, we run an Alteryx process which:
The “new data” xlsx files need to be moved from “Raw” to a folder called “Processed” immediately AFTER they’ve been added to Master.xlsx but BEFORE the workflow ends to ensure all the new data files are processed and added to the master once and only once.
I don’t mind if this happens to each file in turn ie
OR if the add/move happen in a lump ie
Does anyone know how (if!) I can achieve this please? I’m a complete Alteryx novice, so although I’ve seen similar questions asked eg…
…I am confused by which technique best suits my needs and how to tweak it.
The data are confidential, but I’ve attached illustrative "Master" and "new data" xlsx files.
Again, thanks so much for your kind help.
Solved! Go to Solution.
When we need to do something similar on a network drive, cmd.exe and .bat files don't seem to work so we've switched over to using Powershell and .ps1 scripts. A trick with Powershell is that it may not be set up initially in a way that allows you to run scripts, so you may need to have your IT department check your execution policy (with Get-ExecutionPolicy) and set it (with Set-ExecutionPolicy).
Instead of running a .bat file with cmd.exe, you would run a .ps1 script with powershell.exe...and you would need to use proper powershell syntax in the .ps1 script.
A lot of basic powershell syntax can be found by using the "get-help" command with a keyword like "move" -- so typing "get-help move" at the powershell prompt will give you the help for the move-item command.
Thanks for the quick response, we'll give it a shot!
Thanks for the suggestion. This solution still works in 2021