Add users to watchlist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 03:25 AM
In my custom application, I have a choice field as 'Type' with around 10-15 choice options, of which 3 values are also group names. When any of these 3 values are selected then members of the group should be added to the watchlist and if changed to another choice value then the members should be removed.
But if any other user is manually added to the watchlist along with the group members it should be retained on saving the form along with other members until the type gets changed.
I am able to achieve the group members gettting added to watchlist on type selection, but when adding a user manually to watchlist with other group members, the user is not getting saved..it bring back to the just the group members only.
Can somebody please help me in modifying it in my below code :
On Before Insert/Update BR :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 03:25 AM
@Ankur Bawiskar -- Can you please guide here ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 04:29 AM
where is the logic for removal?
what is the BR condition for your BR? where are you check the choice values?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2023 03:14 AM - edited ‎06-09-2023 03:16 AM
@Ankur Bawiskar ---
I wrote a different BR(before update) for removing the users with below conditions:
Type changes from Group 1 or Group2 or Group3