How to attach multiple files to a CALL object?

book

Article ID: 102981

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

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):

<Please see attached file for image>

CALL_object_attachment_field


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.

Environment

This How-To works in any technical or applicative environment.

Resolution

  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):

<Please see attached file for image>

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:

<Please see attached file for image>

SLO definition 1
 

<Please see attached file for image>

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.

Attachments

1558700697592000102981_sktwi1f5rjvs16k8m.png get_app
1558700695965000102981_sktwi1f5rjvs16k8l.png get_app
1558700694358000102981_sktwi1f5rjvs16k8k.png get_app
1558700692014000102981_sktwi1f5rjvs16k8j.png get_app