This content has been marked as final. Show 5 replies
Where is your script code that writes the current e-mail at present. In the Batch Action Script, there are two events, at the end, called AftProcessFile and aftProcessBatch. Have you tried putting the code in the aftProcessFile event? you may need to access the batch loader file collection to get the process state for the selected file.
I went through the process of setting the paramaters for batch processing, then created the script. I placed the email in that script. I did not use the BatchAction.
Yes, I follow you and that's a problem with writing the e-mail notification from within the Batch Loader script that you created.1 person found this helpful
If you wan to do this in the Batch Loader script that you've made, then you would need to call the BATCHENG for the current BatchID and then call the recordset to list the files collected during the BATCHENG process. Then once you have the list of files, you can do a loop to trigger nofication for each file. I won't be able give you source code for this, but if you go through the Supplemental API in the workbench, it has everything you need.
For example, calling "farsFileListforBatchID" will return a list of all files for the specified BatchID. This works for SERIAL running batches, but there are some issues when running in Parallel.
have a look at the following recent post for an example of what the previous post has explained.1 person found this helpful
Batch Script Processing - Please Help
I have not tried this, but the only issue may be as to when the collection of files in a batch gets deleted (If it does as part fo the batch process)
Move the email code to the Action scripts instead of the batch. If you put the email in AftLoad, for example, it will send after each file loads.1 person found this helpful