- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 03:41 PM
I have followed the previous tutorials as well as included many gs.debug statements to try and figure out why the expected events in this exercise are not showing up in the outbox.
Here is a direct link to the business rule "Marketing Event Events" on my dev instance that should be kicking off these email events: https://dev10418.service-now.com/nav_to.do?uri=sys_script.do?sys_id=edbf56630fe4d600699a4e9ce1050e9f
The username is: admin
The password is: password
Here are a few data points and troubleshooting steps I have tried:
1. The tutorial Module 9: Events and notifications, Exercise 28: Create another event business rule shows the script as a non-self executing function, it is simply:
function onAfter() {
// inner code
}
When I place debugger statements inside this function and trigger the script to run, the debugger statements do not appear in the debugger section of the window.
In order to get the statements to show up in the debugger window (and by proxy show me that the script was actually run), I need to convert it to a self executing function:
(function onAfter(current, previous) {
// inner code
}(current, previous));
Is it correct to assume that changing this to a self-executing function is okay to do here (even though the tutorial does not show it as such)?
Even after making it a self executing function, the email notification is fired successfully and my debug statements show up but the email never appears in the system outbox.
2. I am viewing the outbox as the sysadmin
3. I have tried viewing the outbox as another account in case the event was filtered by who sent it. No go here.
4. I have specified the email to be sent to "current.event_coordinator.email" instead of the tutorial suggested "current.event_coordinator"
5. My instance is Geneva
6. In the email notifications for "at_capacity" and "over_capacity", "send to event creator" is checked.
Thanks!
Ryan
EDIT:
To clarify, the admin emails from Module 9: Events and Notifications, Exercise 30: Create email notifications for "Marketing Event is at capacity" or "Marketing Event is over capacity" are not showing up for existing Marketing Events.
Message was edited by: Ryan Warren - Added an item to the data points list - Added a clarifying question about changing the onAfter function from a regular function to a self-executing function - Added clarifying statement about which e-mails are not showing up
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2016 02:05 PM
ryanwarren As it happens, I forwarded this issue to the documentation team earlier today from a different person having trouble. You used Beth Anglin as the event coordinator as suggested in Exercise 21. However, that user has Notifications disabled. If you either pick a different user as coordinator or turn her notifications on, you should then see messages in the outbox.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2016 07:59 AM
Hey Ryan,
Wanted to check in and see if you are still having issues with the training.
Thanks.
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2016 03:11 PM
Yes. Are you able to reproduce the issue with the steps outlined above?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2016 02:05 PM
ryanwarren As it happens, I forwarded this issue to the documentation team earlier today from a different person having trouble. You used Beth Anglin as the event coordinator as suggested in Exercise 21. However, that user has Notifications disabled. If you either pick a different user as coordinator or turn her notifications on, you should then see messages in the outbox.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2017 01:58 AM
Hi Dave,
I face the same problem, and I used System Admin instead of other user. And my instance is in Istanbul.
Any solution for this?
Rgds,
Nur
