- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 11:21 PM
Hey everyone, I am struggling to trigger notifications for each approver. For example, When case is generated,
First Approval Goes to team leader - Send Approval Notification to team leader...if TL Approves then
Second Approval goes to Manager - Send Approval Notification to Manager
Now I am trying to send notifications but it seems that
TL receives two notifications(one with TL Approval and second is with Manager Approval)
Manager receives two notifications(one with TL Approval and second is with Manager Approval)
FI: Separate 2 notifications, 2 email template are created for above
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 11:47 PM
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery("approval_for",current.getUniqueValue());
gr.query();
while(gr.next()){
//This while will give you all the approvals related to the record
//Here you need to write a script saying the approval which is yet to be approved. In your case in first it would be Team Lead and then followed by Manager when this BR triggers for the 2nd time.
}
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 11:46 PM
*code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 11:47 PM
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery("approval_for",current.getUniqueValue());
gr.query();
while(gr.next()){
//This while will give you all the approvals related to the record
//Here you need to write a script saying the approval which is yet to be approved. In your case in first it would be Team Lead and then followed by Manager when this BR triggers for the 2nd time.
}
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.