How to send notification to requestor for/ end user when req is pending for approval

vamshi2
Tera Contributor

HI Team,

 

How to send notification to requestor for /end user with whom the approval is pending 

 

Please advice

6 REPLIES 6

Pranav_Thanedar
Mega Sage

Hi @vamshi2 ,

 

You can refer to OOB notifications. Approval reminders are setup on the sysapproval_approver table. You can use the link below to check OOB notifications.

 

https://<instance_name>.service-now.com/sysevent_email_action_list.do?sysparm_query=active%3Dtrue%5E...

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.

Regards,
Pranav Thanedar

Hi @vamshi2 ,

 

You need to replace the <instance_name> in the above link with your instance.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.

Regards,
Pranav Thanedar

Runjay Patel
Giga Sage

Hi @vamshi2 ,

 

Do the following.

1. create one schedule job and use below script.

var reqGr = new GlideRecord('sc_request');
reqGr.addQuery('approval', 'requested');
reqGr.query();

while (reqGr.next()) {
    gs.eventQueue('request.pending.approval', reqGr, reqGr.requested_for, reqGr.opened_by);
}

2. Create and event registry with name "request.pending.approval".

3. Create one event based notification.

 

Check this blog for configuring event based notification: https://servicenowwithrunjay.com/email-notification/

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------