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
- 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;
}
- 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