Email notification not sending when event is fired

Khalnayak
Tera Guru

Hi,

I am firing an event via flow designer, and the event is being fired fine, but the notification is not being sent at all.

I have checked the event logs, event is being fired.

Below is the event setup in flow.

find_real_file.png

and below is the event that is created.

find_real_file.png

 

and below is notification

find_real_file.png

find_real_file.png

find_real_file.png

 

Im not sure why this notification is not being sent, I have set it to fire on the right event, notification is active, I have made sure the table for event and notification is same.

Please can you help?

1 ACCEPTED SOLUTION

Hi,

Are other notifications going out in your system?

try to trigger the same event from background script and check once

var gr = new GlideRecord("sc_request");

gr.addActiveQuery();

gr.query();

if(gr.next()) {

gs.eventQueue("your_event_name",gr,'put the email address here','');

}

View solution in original post

26 REPLIES 26

just tried the script below and same thing didnt work. 

var gr = new GlideRecord("sc_request");

gr.addActiveQuery();

gr.query();

if(gr.next()) {

gs.eventQueue("ff.firefox.complete.remove",gr,'usmaan.liaqat@freshfields.com','');

}

Hi,

Are you using any email script in your notification body?

If yes then that might be causing the issue

Try to just keep simple message and test once

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

asifnoor
Kilo Patron

Hi,

In your notification, you need to select

Event is Triggered (not fired)

as you are triggering the event form flow designer.

 

Mark the comment as a correct answer and helpful if this helps.

Hi @asifnoor if i select the triggered option, then there is nothing else to select, how do I set it so it triggers with the event?

Any reason why you are triggering the event, when you can directly trigger the notification from flow designer?

If you want it through event then cross verify these things

1. In your event log screenshot, i see parm2 filled where as in flow designer you are not seing any data for parm2. check if you are seeing the right event in the log or not

2. Once the event is fired and state is processed, then go to system logs and search for the name of the notification and check if you see the notification.

3. ensure that event creator and param1 is checked and the user is not locked out or inactive or have invalid email.