Event from a scheduled job is not getting triggred

vtred
Tera Contributor

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:

find_real_file.png

EVENT:

find_real_file.png

NOTIFICATION:

find_real_file.png

Can someone help - am not sure what i am actually missing?

17 REPLIES 17

SanjivMeher
Kilo Patron
Kilo Patron

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.

BALAJI40
Mega Sage

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.

sachin_namjoshi
Kilo Patron
Kilo Patron

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


It does not matter weather double code or single codes. It should be in codes only.