How to attach multiple files to a CALL object?

Document ID : KB000102981
Last Modified Date : 22/06/2018
Show Technical Document Details
This article demonstrates how to attach multiple files in CALL object?

By default, in Automic Web Interface, you can add only one attachment to a CALL object.
It is impossible to enter several files in the field AE Attachment (see green box at bottom):
For functional reasons, it can happen that you need to add several files to a mail.
For example, some reports automatically generated in a directory of your SAP Agent should be forwarded to the financial team by mail.
This How-To works in any technical or applicative environment.
  1. Create a job (Windows, Unix,...) in which you add the files you want to transfer to the CALL object. In the process tab, you can use this kind of script using the command :REGISTER_OUTPUTFILE:
echo "Hello World"
:REGISTER_OUTPUTFILE "<path>\file1", "N"
:REGISTER_OUTPUTFILE "<path>\file2", "N"
  1. In the CALL object, select External files in Source section of Notification tabs (see options on the right):
CALL object definition for sources
  1. Now, you just have to create an SLO object that will be triggered by the execution of the Windows Job:
SLO definition 1
SLO definition 2
Additional Information:
There are ways to improve this technique. For example, you can change the way you define files in your Windows Jobs and add a loop that lists files in a directory and adds those to the Output, this way the files don't need to have a fixed name.