Email notification are not sending when an event is trigger

appsicumdisplay
Mega Contributor

Hii All,

        I search a lot about email notification but I don't get any satisfied answer. Many questions don't have any answer and some have suggest that "Checked field(Send to event creator) in Email Notification. I did the same but email are not sending please help me out.

I want to send an email using a event when a condition is met in business rule. My situation is following.

  • Event: exceed_proposed_time
    • Fired by: After new time record redirection
  • Email Notification: Exceed Proposed Time
    • Send to event creator = checked
  • Business Rule: After new time record redirection
    • insert = checked
    • update = checked
    • Script: gs.eventQueue('exceed_proposed_time', current, current.sys_id, "myemail@example.com");

Business rule have met condition: I checked and showing a error message

Event is created: I checked in System Logs -> Events

Email is not sending: Checked my inbox and ServiceNow's "System Mailbox -> outbound -> outbox".

Please let me know where I'm wrong or you need more information.

Thanks-

Macarius

1 ACCEPTED SOLUTION

Hi Macarius,



Nice, now we definitely know what the problem is. Now it's a matter of pinpointing what's causing it. I think there is no shortcut here then just go through those steps:


Diagnosing and remedying stuck event processes



You can also try to log in to your affected nodes and do it yourself:


How do I log into a specific node or cancel a job on a node I'm not logged into?



or just contact SNow and they will be able to do it for you.




Cheers



Greg


View solution in original post

28 REPLIES 28

epam
Kilo Guru

Hi,



Have you checked other mailboxes ("Sent", "Skipped" or "Failed")?



Does Email Notification fired by the event (check "Send when" field on the notification form)?



Does the user in the Service Now can receive the notifications? You can try to use   "Force delivery" checkbox on the notification form.


Hello Epam,


        Thanks for your reply .


  • Have you checked other mailboxes ("Sent", "Skipped" or "Failed")?
    • YES, there are not any sent, skipped or failed emails
  • Does Email Notification fired by the event (check "Send when" field on the notification form)?
    • YES
  • Does the user in the Service Now can receive the notifications?
    • No, Admin is the Event Creator and admin is not receiving any email
  • You can try to use   "Force delivery" checkbox on the notification form.
    • I don't find any option like "Force delivery" under the "Email Notification" form. Could you please tell where I have to check this option?


Please let me know if there is any other option to send email notification.


Hi,



You need to tick Event parm2 contains recipient   in the notification, plus parm2 should specify the sys_id of the user you want to send the email to - not the actual email address.


..


Script: gs.eventQueue('exceed_proposed_time', current, current.sys_id, "myemail@example.com");



Edit:


Maybe what I just said above is not quite what you need to do.


You are perhaps thinking that Parm1 current.sys_id is sys_id of the executing user, admin?


It is not, it   is the sys_id of the originating record in the originating table.



If you want to specify the sys_id of the executing user, try this and tick Event parm1 contains recipient


gs.eventQueue('exceed_proposed_time', current, gs.getUserID(), "myemail@example.com");



Best Regards



Tony


Also check in the event.log that the event state is processed and not error.