- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-10-2022 05:05 AM
Hi Community,
I'm trying to add a user to watchlist whenever an incident is created. SO I created a Business Rule(before insert) on incident table and added the below script but it is not working
(function executeRule(current, previous /*null when async*/) {
gs.addInfoMessage("BI Group");
current.watch_list = "usersys_Id here";
})(current, previous);
I tried to remove the toString() as well but still not working
(function executeRule(current, previous /*null when async*/) {
gs.addInfoMessage("BI Group");
current.watch_list = "usersys_Id here";
})(current, previous);
I can see the info message if I change the business to after insert, but the user is still not adding to watchlist. please help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-10-2022 05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-10-2022 05:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-10-2022 05:34 AM