Notification email advanced condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:17 AM
Hi All,
I have a requirement where if the requested for of an RITM is a vip user then the notification shouldn't be sent to that user. I have used advanced condition in the notification and my script is.
If(current.requested_for.vip== false)
answer=true;
else
answer=false;
But everytime this script returns true, can anyone please help me what am I missing here?
Thanks in advance.
Regards,
Saurabh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:26 AM
Hi Saurabh,
Can you try below
If(current.requested_for.vip== false)
{
answer=false; //do not trigger
}
else
{
answer=true;//trigger
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:33 AM
Hello Jaspal,
Thank you for your quick response. I tried the script but it is still not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:38 AM
Try below
var ritmis=new GlideRecord('sc_request');
ritmis.addQuery('sys_id',current.request);
ritmis.query();
if(ritmis.next())
{
if(ritmis.requested_for.vip =='false' || ritmis.requested_for.vip == false)
{
answer=true; //trigger
}
else
{
answer=false; //do not trigger
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:50 AM
This one didn't work either.🥲