Event from a scheduled job is not getting triggred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 02:29 PM
Hi,
Am trying to trigger the event from a scheduled job and from there send a notification.
but when i tried yesterday it was working, when i see not - the first step - event is not getting triggred
SCHEDULED JOB:
EVENT:
NOTIFICATION:
Can someone help - am not sure what i am actually missing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 02:35 PM
Can you try
gs.eventQueue('daily.scheduled.notifications', gr, gs.getUserID(), gs.getUserName());
Also make sure, you have record in u_test table with Status Pending.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017
02:36 PM
- last edited on
‎09-16-2023
11:45 PM
by
ServiceNow
Did you check "send to event creator", if not please check and again trigger the schedule job
Email Notifications - Who will receive | |
---|---|
Send to event creator | Select this check box to send the notification to the person who performed the action that started the notification process if the person is also specified in the Users/groups in fields, Users, or Groups field. If the event creator is not specified in one of these fields, the event creator does not receive a notification regardless of the setting in this field.
For troubleshooting information, see Troubleshooting email notifications - Send to the Event Creator on the ServiceNow Community. |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 02:38 PM
Hello,
Please remove double quotes in your gs.eventQueue function while passing event name.
e.g
gs.eventQueue('daily,scheduled.notifications',gr);
Also, check if event is getting processd in your event log.( system logs --> events)
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 02:44 PM
It does not matter weather double code or single codes. It should be in codes only.