Send email to new added user is Glide list filed

ESL
ServiceNow Employee
ServiceNow Employee

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? 

 

find_real_file.png

Thanks for help.

 

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

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

find_real_file.png


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

View solution in original post

7 REPLIES 7

Chandu Telu
Tera Guru
Tera Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

ESL
ServiceNow Employee
ServiceNow Employee

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.

@Easley 

Why to do this via UI action?

In UI action you won't know the previous value of field

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader