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