Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Sending notification to approvers for pending approval

Geeta5
Giga Contributor

I have to send notification to all approvers for the request which is pending in their queue for approval.

I have created a scheduled job where i am calling an event. This event is then used in notification. But no notification is triggered.

Please suggest where is the error.Below are the screenshots:

find_real_file.png

 

2) New event created

find_real_file.png3) Event used in notification

 

find_real_file.png

8 REPLIES 8

Prateek kumar
Giga Sage

is the  event fired at all??

Did you check the event log??


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Yes the event is fired. But in the Emails log i could not found my notification email:

 

find_real_file.png

 

Geeta5
Giga Contributor

these are the latest event log.How to know for which Request they are firing??Also should I create new notification? As of now i am using old notification

 

find_real_file.png

Hi Geeta,

Can you try to update script as below?

gs.userName() is not a valid function; use gs.getUserName() instead and test

gs.eventQueue('approval.reminder', gr, gs.getUserID(), gs.getUserName());

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader