Help with Email Notification from gs.eventQueue()

tobrien
Kilo Guru

Hi,

Step #1: I created a Scheduled Task which adds an event via gs.eventQueue().

Step #2: I registered the named event in #1.

Step #3: I created an (Email) Notification which is supposed to fire on the event in #1 and #2. The PREVIEW of the notification looks OK.

The event gets listed in the event table (image attached), but the email does not get sent (and no reference to it in the sys_email table.)

The attached images are of the steps above. 

 

Any insight would be greatly appreciated.

 

tony

 

 

7 REPLIES 7

Hi..  specific responses to your questions -->

Is the recipient identified in the notification or event (parm1 or parm2) information?

Answer: Yes, I am the recipient on the WHO WILL RECEIVE on the Notification.

 

If passing recipient in parm1 or parm2, in the notification, is the parm1 or parm2 contains recipient boxes checked?

Answer: My understanding is that parm1 & parm2 are NOT required.

Is the user who you are trying to send this to active in your system and has a valid email address and notifications turned on?

Answer: Yes but I do not see any label on the USER's FORM to specifically enable/disable notifications. Is there one?

Is the "send to event creator" box checked on the notification as well?

Answer: Yes.

Is the notification itself, active?

Answer: Yes.

 

To Be Clear -- the ScheduledJob is calling gs.eventQueue('send.ASN.to.RBS', null); 

And a row gets added to System Log -> Events table which has a date/time in PROCESSED indicating , er, it was processed.

I can find no associated errors in the System Log -> All

But the email does not get added to [sys_emails]

 

Prateek kumar
Mega Sage

I dont see any recipients as parameters from gs.eventQueue().

https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/new_to_servicenow/app_store_l...


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

Thank you, Mr. Prateek !

 

My understanding (read elsewhere than your link) is that the PARM1/2 are not mandatory, and so I do not include them.

 

BTW, I had tried adding them just in case but it made no difference.

The event is being PROCESSED but the outbound email does not happen.