- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 11:29 PM
Hi all, so how to trigger a Mail notification to respective support team 1 or support team 2, when incident is pending with "Inactive" members.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 04:56 AM
Hi @Sharath807 ,
Create Event as Follows:
To work on past/existing records you may write fix script as follows:
var gr = new GlideRecord('incident');
gr.addEncodedQuery('active=true^assigned_toISNOTEMPTY')
gr.query();
while(gr.next())
{
if(gr.assigned_to.active == false)
{
gs.eventQueue('Inactive User Notification', gr , gr.number, gr.short_description);
}
}
For further inactivation of users you may write business rule as follows:
Type : before->Update
condition: active -> changes to -> false
script:
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 02:07 AM
I don't have access to my laptop today. Will provide tomorrow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 09:03 PM
Rohit's solution will work. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 04:56 AM
Hi @Sharath807 ,
Create Event as Follows:
To work on past/existing records you may write fix script as follows:
var gr = new GlideRecord('incident');
gr.addEncodedQuery('active=true^assigned_toISNOTEMPTY')
gr.query();
while(gr.next())
{
if(gr.assigned_to.active == false)
{
gs.eventQueue('Inactive User Notification', gr , gr.number, gr.short_description);
}
}
For further inactivation of users you may write business rule as follows:
Type : before->Update
condition: active -> changes to -> false
script:
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 10:18 PM
Hi @Sharath807 ,
Have you tried the given solution ?
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi