Call an event/notification in Scheduled Job

vimmykhurana
Kilo Contributor

Hi all ,

I need to trigger a notification for the records when their Implementation date is less than 11 months old .

I have created a Scheduled Job and provided the conditions.

Can anyone suggest how we can get the notification triggered in a Scheduled Job ?

Thanks,

Vimmy

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

First create a event and process that one with below sysmtax


Use the gs.eventQueue('eventname',object(generally table name),'parm1','parm2');


Please refer these links,


http://wiki.servicenow.com/index.php?title=Event_Registry#gsc.tab=0


http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0


View solution in original post

7 REPLIES 7

anjalichoudhary
Kilo Guru

Hi Vimmy,



Hope this link will help you to trigger Notification through Schedule Job:



http://community.servicenow.com/community/develop/blog/2017/03/06/fire-an-email-notification-from-a-...



Thanks,


Anjali


Thanks . It helped. Made an event and called it via gs.eventqueue in the Script.


BALAJI40
Mega Sage

First create a event and process that one with below sysmtax


Use the gs.eventQueue('eventname',object(generally table name),'parm1','parm2');


Please refer these links,


http://wiki.servicenow.com/index.php?title=Event_Registry#gsc.tab=0


http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0


Object can be taken as "Current" as well.