Event being fired but email notification not being created

int123
Kilo Contributor

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.

1 ACCEPTED SOLUTION

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!

View solution in original post

21 REPLIES 21

Ajaykumar1
Tera Guru

Hi,

Check the user to whom you are trying to send the email is active and has the email id in email field.

Regards,
Ajay

PedroMiguelNeto
Tera Contributor

I was having the same problem and apparently changing the name of my event, in the event registry, from something like "My Project - This is my Event" to "my_project.this_is_my_event" worked for me. Let me know if it helps.

Eduard Nitoi
Tera Contributor

The answer is to add the goddam 'answer' variable in the Advanced condition, such as:

 

answer = true;

 

Do not attempt to create the variable before ! It already exists in global ... I've lost like almost 2h on this. 

Hi,

Sorry, I'm unsure of the context of your reply, but within the platform, you wouldn't need to add "answer = true;" in the advanced condition of an email notification if you're not using any scripted condition. That field can be blank. If there's script there, then yes, in order for the notification to fire, all conditions, etc. must equal true.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!