- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 04:51 AM
Hi
I have some glide list field which can let the user read the incident ticket.
For example, Able Tuter, Abraham Lincoln, Adela Cervantsz are already in the list, and when I added Beth Anglin to the list, I want to send the notification to Beth ONLY not send to all user in the list.
Is there any idea to do it?
Thanks for help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 05:07 AM
Hi Easley
You can get current and previous values of the watchlist users and get the recently added users.
how are you triggering the notification?
Logic: you can use user from below code to pass it in your eventQueue
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 04:57 AM
Hi Easley,
Are you sending the notification using BR or direct notification ??
If you use BR by using previous and current list we can send the email to newly added users
Thanks
Chandu Telu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 05:06 AM
Hi,
how are you triggering the notification?
you can use after update business rule and event on incident table
in the notification make it trigger based on event and use eventQueue() in the BR to trigger the event
In the BR script get previous and current value of watch list and find the difference i.e. the user who is added latest
Include that user in event parm1
Regards
Ankur
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-07-2022 06:17 AM
Hi , Ankur
Thank you for your comment.
I would like to use a UI action button to trigger the notification.
So you mean I need to pass the added user list to event parm1 and pass to notification setting "who to receive". I am not sure how to do that. If you can show me some sample , it will be very appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 08:10 PM
Why to do this via UI action?
In UI action you won't know the previous value of field
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader