Trigger email notification using event for only the new user selected for a Glide list Type field.

Rush B
Tera Contributor

I have a glide list/multireference field and I need to Trigger email notification using event for only the new user selected from the Glide list Type field. For example: their are A,B users selected in the field and then C is selected and saved so need to trigger email notification for C only. Please help by break down the steps and logic to compare the old value and new value to figure out the new user and pass in event queue. 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Rush B 

you need to have after update BR and check which is the new one

get the previous values and latest ones and find the difference and then use only that user in eventQueue as recipient

You can use ArrayUtil OOB class

ArrayUtil - Global 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Rush B 

you need to have after update BR and check which is the new one

get the previous values and latest ones and find the difference and then use only that user in eventQueue as recipient

You can use ArrayUtil OOB class

ArrayUtil - Global 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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