Ok. I got it. :)
You have your file trigger. Great. Order will matter here... so do a List Files as you had mentioned.
For the FOLDER that the list-files is looking in, use the following variable, as its the folder where the TRIGGER.TXT was found:
{TRIGGER(Active|LastTrigger|File.Folder)}
Include file Mask: *.csv
========================
Then, Create an archive task that runs directly after list files and set the 'Archive Path' location to this:
{STRING(Replace,{TASK(PrevTask,StdOut)},csv,zip)}
What that does is take the output from your 'List Files' task (full path to the file including the csv extension) and replaces 'csv' with 'zip'.
On the CONTENT tab of the archive task, Add an item and use the same value as the list files path:
{TRIGGER(Active|LastTrigger|File.Folder)}
Include File mask: *.csv
For the FTP/SFTP upload, you'd also use this value for the folder and *.zip for the file mask:
{TRIGGER(Active|LastTrigger|File.Folder)}
I'm also assuming that you're deleting the zip file from that folder after it sends. Thats why I used the *.zip for the file mask to upload. If you need the specific file name, i can make a variable for that too.
That make sense?
Brian
Edited by user
2013-04-11T18:52:21Z
|
Reason: Not specified