- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2019 11:14 AM
I have an event that is triggered through a run script activity in a request item workflow. The event is fired correctly and i can see it in the event logs.
I also have an email notification created to send whenever the event is fired with no other conditions. The subject and body also have just "test" written in them.
The email notification is not being triggered, I can see in the logs the other emails that get sent for the requested item such as "request item has been opened on our behalf" and "approval request" emails. However, this one notification that requires this event to be triggered does not work.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2019 06:32 AM
Yes, I understand what the problem is, I just wanted to get more information, which you're revealing now.
So taking in to account the 4 things you listed above...we can then try:
1) Is this notification actually "active"?
2) Is there a condition in the notification (so not only the event firing but a condition set) if so...what is that?
3) For Parm1, while you can use email address...I'd recommend just passing the user's sys_id, so current.request.requested_for instead
4) You've said the notification isn't sending, but are you sure? Have you checked sys_email logs to see that it's not going out and perhaps just going to a spam folder or something?
5) Double-check the event you've specified for this notification to ensure it's really set to:
createItemNotification
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 07:11 AM - edited ‎12-08-2023 07:17 AM
Hi Allen,
I am just as surprised as you, but if you use events and do not select a table to configure and have no conditions the script must return this variable of answer to true. And it must be the last thing you write on your code as well. If you have 5 lines of code, the last line should be the one that has the answer. I've tested all these scenarios, check it out.
Only if the field is truly empty the e-mail is indeed triggered.
I have to mention that I had some code commented out in Advanced condition field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 11:55 AM
Yes, if you have content in there, even commented it out, it counts as "used" and THEN...it must result in true to send.
If the script is completely empty, like I mentioned, you wouldn't need it.
I too felt the pain of having commented out code and wondering why and it's because that field counts as populated and not null and thus it must return true to send.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!