How Can I show info message on my incident record when child records are added in it via list collec
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2024 11:12 PM
How Can I show info message on my incident record when child records are added in it via list collector?
I have tried by using after update business rule but it is not working.
Labels:
- Labels:
-
Incident Management
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 01:14 AM
@Anmol12 Could you please explain your use case in detail and also share the script which you tried so far.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 03:11 AM
Hi Sandeep, yes so whenever I add child incidents in a incident record via related list list collector it should show a info msg in that parent record.
Tried After Update BR but notworking -
Spoiler
Spoiler
var grinc = new GlideRecord('ncident');
grinc.addQuery('u_parentinc', current.getUniqueValue());
grinc.query();
if(grinc.next()){
gs.addInfomessage('Work on parent, close all childs');
}
grinc.addQuery('u_parentinc', current.getUniqueValue());
grinc.query();
if(grinc.next()){
gs.addInfomessage('Work on parent, close all childs');
}