- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2015 04:20 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2015 01:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2015 04:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2015 08:54 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2015 09:38 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2015 10:21 PM
Also check in the event.log that the event state is processed and not error.