Catalog notification

Test-RAJM
Tera Contributor

Can you help me understand how to display the next approver's name in the catalog item notification? I want the current approver to be able to see who the next approver will be. Is this achievable through Flow Designer, or does it require scripting?
In the email notification, it should display

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Test-RAJM 

I think we can't display the name until the next approver is generated. In many cases, the next approver might be grouped, so how would you handle this? Also, what’s the purpose of showing the next approver and to whom? The requestor can already see the approver in the portal, so why include it in the notification?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

SD_Chandan
Kilo Sage

Hi @Test-RAJM ,
use nextApprover in your email body.
var nextApprover = "";
var gr = new GlideRecord('sysapproval_approver');
gr.addQuery('sysapproval', current.sys_id); // RITM or request
gr.addQuery('state', 'requested');
gr.orderBy('sys_created_on');
gr.query();
if (gr.next()) {
nextApprover = gr.approver.name;
}

Thank you
Chandan