- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2023 08:55 AM
Hi,
How can I limit the number of users that can be added to the watch list on the task table? In testing I was able to put over a 100 users which is way more than needed. I found this article from the servicenowguru site (https://servicenowguru.com/scripting/client-scripts-scripting/limiting-selections-list-collector/) but I was wondering if there is not a way to set this value on the dictionary entry?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2023 02:46 AM
hi @Jared Wason ,
It's possible. You need BEFORE Update Business Rule with below script
if(current.watch_list.split(',').length >3){
gs.addErrorMessage("Watchlist is limited to 2 users");
current.setAbortAction(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2023 02:46 AM
hi @Jared Wason ,
It's possible. You need BEFORE Update Business Rule with below script
if(current.watch_list.split(',').length >3){
gs.addErrorMessage("Watchlist is limited to 2 users");
current.setAbortAction(true);
}