Sending notification to approvers for pending approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2019 08:03 PM
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:
2) New event created
3) Event used in notification
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2019 08:05 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2019 08:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2019 08:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2019 01:10 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader