In need of some advice; I’ve got a process which creates a file named based on what it has collected earlier - Account ID etc. But at the end of the process I am trying to check if the folder which is named the same minus EDD_ at the beginning and then contains the file.
But I would like to check if the folder exists, if it doesn’t, create it, if it does, save the file in this location.
The trouble then lies in the ‘Move files’
I have something incorrect, So if the file exists I’d like to save this file renamed with the date attached to the end so it saves there no problem.
Something in my code is incorrect but I am having difficulty rectifying.
Please see attached a couple of the workflows, would appreciate if someone could advise.
I feel that the problem may lie in the renaming convention, as the error I am receiving is that it cannot find the file (if the date addition on the end is necessary)…
You have added +Now.ToString("ddMMyy") to the From-Path aswell.
But does the From-Path even change? My guess is, that the From-Path stays the same and you should give it the same From-Path as in the other Move File activity.
Only the To-Path changes - that is where you need the +Now.ToString("ddMMyy").
Kindly check if this is the solution
Edit: If you use different filepaths like in this workflow, I would recommend you to put them in variables (and initialize them there) for code clarity
Example: FilepathSource, FilepathDestination ( + Date)