Yes the email within a uproc can be changed using the upd UPR command. The switch is the NOTIFY setting, example below straight from the commands manual.
To do a bulk update you could do a uxshw against all the uprocs then filter on whether there is an entry for mail :Y. once you get a list of uproc to update you can pass that list into the update command with the new recipient.
- Output from a uxshw upr command where notify is enabled
| notify : (
mail : Y
NOTIFY: Sets up e-mail notification on completion or launch of a Uproc.
Item Format Default
MAIL=Y|N 1c N
COMPLETED=Y|N 1c N
ABORTED=Y|N 1c N
REFUSED=Y|N 1c N
TIMEOVERRUN=Y|N 1c N
JOBLOG=Y|N|value 1c | 4n N
RECIPIENT="email1;email2…" 256c empty
Example:
uxupd UPR EXP UPR=DEF_UPR NOTIFY MAIL=Y ABORTED=Y REFUSED=Y JOBLOG=400
recipient="admin@Automic.com;admin_du@Automic.com"
Original Message:
Sent: Nov 07, 2023 06:14 AM
From: Sean Terry
Subject: Workflow to update email recipients for Dollar Universe Failures
This is more a question to understand if its technically possible.
We have emails that go out if a job fails, and I wondered if its technically possible to built a run that will go through the system and update or add a recipient to emails on all items that have emails enabled.
I understand that this can depend a lot on how the product is being used.