Email notification is not being sent, even though conditions are met
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 07:02 AM
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:
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 07:06 AM
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
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 07:07 AM
Use this
var user = gs.getUserID();
if(current.assigned_to == user)
{
answer = true;
}
else
{
answer = false;
}
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 07:13 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 09:55 AM
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.
Regards,
Musab