Email notification is not being sent, even though conditions are met

karolisjon
Tera Contributor

Hello, I'm facing an issue where the email notification is not sent even though all conditions are met. Maybe you will be able to see the mistake in case I missed anything. 

These are the conditions for the notification: 

find_real_file.png

In my test case:

Case Type = Insight

Assigned to -  the record is assigned to me, so it's not empty

Tried adding new comments and worknotes, updating the description and sub-state - it didnt trigger the notification. Email should be sent to the user added to Assigned to field, which in this case is me. 
Are you able to see if I missed anything here? 

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hi,

Under 'If' you have added answer = false; due to which it is not working please add answer= true; in 'if' condition and answer= false in else condition

Please hit like and mark my response as correct if that helps
Regards,
Musab

Use this

var user = gs.getUserID();
if(current.assigned_to == user)
{
answer = true;
}
else
{
answer = false;
}

Please hit like and mark my response as correct if that helps
Regards,
Musab

sonali panda1
Kilo Sage

Check the 'Send to event creator' checkbox and remove this script.

Also ensure that the user who should be getting the email has a email id.

Musab Rasheed
Tera Sage
Tera Sage

Hi,

Another easiet way to do is to add condition like below, use dot walking on 'Assigned to' field to reach 'User ID' field. Once you add this no need for script and no need to check 'send to event creator' checkbox as well.

Mark my answer as correct if that helps.

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab