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

Greg,



        From the starting when I'm studying about SN and in Training Section there is a module(Coding on ServiceNow --> Events and notifications) in which user learn about send email notifications. That time I tried to send email notification as their instructions, this problem occurred from that time. Here is the link ServiceNow Developers (Events and notifications) where I   studied about this.



And there are some more events exist which have "ready" state.



Example: You all know about "Incidents" Application. In this application whenever an incident is closed then a notification is send. This event also have "ready" state.



Please suggest me what I suppose to do now?


Thanks Tony,



I checked your link but in this all about if "System Scheduler > Scheduled Jobs > Scheduled Jobs > events process" have state = "queued" and whereas I have "running" state. So how I debug this?


Hi Macarius,



That's fine you have more, the question is how many? Can you check System Diagnostics > Diagnostics Page and see how many events you get while using the system?



Do you have problems with notifications overall or only with this one?


What instance are you using? Are you on SNow dev instance maybe?




Cheers



Greg


Greg,


        I checked System Diagnostics > Diagnostics Page     in "system overview", I found that there are 2922 Event Pending.



System overview


Emails (recv) last 60 minutes0
Emails (sent) last 60 minutes0
Events pending2922
Log entries last 60 minutes335
POP3 StatusProcessed 0 emails
SMTP StatusConnected to: devrelay, as:"myinstance@servicenow.com"


Yes, I have problem with all notifications and Yes I'm using a dev instance.



Is there anything which we need to set in dev instance?