- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2019 03:42 AM
Hi ,
I've service catalog and based on submission ,request item and multiple catalog task will be created. Once i closed the catalog item it will be having multiple approval . Once everything is done i need to send the closure notification Where receiptant should be the email of all approvers in the request items.
I have workflow and in that have created the event when the event is triggered in workflow notification need to send
1. Event created in workflow
2. Closure Notification - Condition when the above event fired the notification will send.
My requirement is to send the notification to all approver of the current requested item.
So I've created the email notification script and kept the name of the script in the email body.
Could anyone help with the email script ??
Solved! Go to Solution.
- Labels:
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2019 07:22 AM
I believe you are looking for a way to pull the list of approvers in your workflow script which is triggering the event.
If above is the case the add below script to your run script activity or
var approvers = [];
var sysApprover = new GlideRecord("sysapproval_approver");
sysApprover.addQuery("sysapproval",current.sys_id);
sysApprover.query();
if(sysApprover.next()){
// gs.log('sysApprover.approver....................'+sysApprover.approver);
approvers.push(sysApprover.approver.toString();
}
gs.eventQueue('eventName',current,'',approvers);
Note: Notification check param2 contains recipients.
If you are facing a different issue post the details here!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2019 07:22 AM
I believe you are looking for a way to pull the list of approvers in your workflow script which is triggering the event.
If above is the case the add below script to your run script activity or
var approvers = [];
var sysApprover = new GlideRecord("sysapproval_approver");
sysApprover.addQuery("sysapproval",current.sys_id);
sysApprover.query();
if(sysApprover.next()){
// gs.log('sysApprover.approver....................'+sysApprover.approver);
approvers.push(sysApprover.approver.toString();
}
gs.eventQueue('eventName',current,'',approvers);
Note: Notification check param2 contains recipients.
If you are facing a different issue post the details here!!