Is there a way to mass update email recipients of job notifications?
search cancel

Is there a way to mass update email recipients of job notifications?

book

Article ID: 92372

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

How to mass update the email fields in the jobs in DE (dSeries)?

Environment

CA Workload Automation DE (dSeries)

Resolution

It is recommended to use variables or JavaScript for the email recipients. This allows easy update of email address in the jobs.

1. In Services on the Desktop Client, create a global variable named 'emailaddr' in a default context with the value of the email address e.g. '[email protected]'.
2. In Services create a JavaScript using the getVar function to get the value of the global variable and assign the value to a variable as below;
WOB.email = getVar('emailaddr','default');
3. Specify the JavaScript to run at job run time in the job and use the %WOB.email in the Email Notification.
When the script runs, WOB.email is assigned the value of '[email protected]'
4. Use the WOB, APPL or ESP level prefix depending on where the variable be used, for application level use %APPL.email.  The 'emailaddr' can be changed any time an update is needed.   Create several email variables to store different email address for different jobs and user.