Email notification is sending to wrong user even when correct user email was mentioned

shiva9
Giga Guru

We have a notification which is triggered by an event and in business rule we have mentioned user email so that he can receive notification but wrong user was receiving notification.

 

Can any one help me with this

1 ACCEPTED SOLUTION

shiva9
Giga Guru

Hi,
Issue resolved
It was due to email address given in "cmn_notif_device" table

View solution in original post

6 REPLIES 6

ersureshbe
Giga Sage
Giga Sage

Hi, can you check the notification script? Is ''cc" field present in the script? 

Regards,
Suresh.

We dont have notification script for this

 

Weird
Mega Sage

Can you add the event call here and the settings on your notification?
There really shouldn't be any issues. For example if we look Servicenow docs, they provide this example:

gs.eventQueue('request.commented', current, gs.getUserID(), gs.getUserName());

 Now, if you have a notification for said event and the notification has either "Event parm 1 contains recipient" or "Event parm 2 contains recipient" checked, then it should send it to the recipient as long as correct email address/user is on the correct parameter.
When you trigger the event you can check the sysevent table to see what it contained.
If Parm1 or Parm2 fields contain incorrect recipient, then your script has some kind of issue.

jaheerhattiwale
Mega Sage
Mega Sage

@shiva9 Can you post the screen shots of script here?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023