Hello,
I have an automation that downloads bank statements, I have a “wait for download” activity that kicks off once the download is successful, the goal is to take the file from the system downloads and place it into the correct folder AND create that folder if it does not exist. For example, statement is downloaded for January 2022 but there is not a 2022 folder or the sub folder January the automation should create them both.
Every month when the unattended automation runs it should create a folder for the current month/year if not existing and place the downloaded file in this folder.
I have tried the move file, create file and create folder and I am stuck. Seems to me that this should be possible
Hi ,
before creating folder , you can use “path exists” activity to check if year folder is present or not .if path exists is false then only create folder.
Do the same check for month folder.
I took the method of checking for path first and then ran into issues with sometimes it working and sometimes it not working the True/False was sometimes not correct. After deeper dive it seems that sometimes the current environment returns the computer name, and sometimes it returns the user name…
Have you ever seen this? I know the solution is to just change the folder path to always be "Robot" since the windows user account is Robot, but I would prefer to keep this based on system environment username so it will work on other machines if I decide to move machines in the future…