Hey guys,
I've had VisualCron since 4.6.16 (i think) but I have honestly never used any more advanced functions other than the basic Execute task and maybe a few conditions and notifications so I may just be missing something here, but I have a process i'd like to build natively into visualcron instead of scripting it and thought i'd ask how i'd go about accomplishing this. i'll keep it in the context of an SFTP transfer and an archive (ahead of time) to help explain what my goals are:
2:30pm each day I want to take c:\temp\FileToUpload.csv and copy it (or archive/zip/etc..) to c:\temp\FileToUpload_DATE_TIME.csv
File Copy does not appear to have the ability to do a one to one source file name and a different destination file name (as I want it renamed to contain a date so I can keep history in one folder) I know a rename task can do this but it removes the original file in the process.
2:30pm each day, assuming the previous 'Archive' step was successfull, I want to SFTP a very specific file (c:\temp\FileToUpload.csv) (always the same name, updated daily) to a 3rd party customer. In the file mask for the SFTP connection I put the exact file name in and this works but since I cannot specify a SPECIFIC file name, only a file mask, the process is always successfull whether or not a file is actually sent or not. I want it to 'Error Out' if c:\temp\FileToUpload.csv does not exist or for any other reason the file doesn't get uploaded via SFTP, but its always coming back as a success.
So, I have 2 ways I was wanting to do this. Copy (using different destination name) to the Archive folder and if successful, run the SFTP process to upload it.
OR
SFTP the file to the 3rd party customer (leaving original file in place) and then do a RENAME File operation task that would effectively move the file while renaming it.
Anyone have any other suggestions? Ideally both the 'Archive' step and the 'SFTP' step would be able to know there was a problem. Hopefully i've explained what I want in a way that makes sense. I could always just write a powershell script to handle all this but I thought i'd use the built-in functionality, if possible.
Brian