Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Mark Johnson
2008-10-16T21:35:08Z
Support,

I want to use a file trigger to start a job. The files that will be used to start the job will be different but start with the same name.

Example:

Test-1234.txt
Test-2345.txt
Test-3456.txt

So, the file trigger will be looking for = "Test-*.txt". I have other jobs using the file triggers and they work great.

Here is where I am having problems:

I want to process each file one at a time. I want to take the file name of each file and use that as the subject line in an email task. I also want to take the contents of each file and place the contents in the body of the same email. Last task, move the file to a backup folder.

So, if this worked correctly I would receive 3 different emails. One email for Test-1234.txt and one for Test-2345.txt and one for Test-3456.txt. Each email would have whatever content was in the file that is listed in the subject line.

Right now I can only get this to work for 1 file at a time. If I try and drop more then 1 file in the directory that is being monitored for my trigger file only 1 file gets picked up and processed. The other files just sit there and nothing happens.

Ideas?

Thanks
Mark Johnson
Sponsor
Forum information
Support
2008-10-16T22:44:40Z
Please try the latest version in the beta. That one has a "Job queue" option in the main settings of the Job. That will process one Trigger at a time. Then you use the LastTrigger Variable to get all values right.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top