Sending notifications to all the users in the list Field

Saisree Kota
Tera Contributor

Hi,

 

We have a list Field which has multiple users.
we need to trigger an event to send notification to all the users in that field, when i send that field as param2 in the event it is sending only to first user in the list, any suggestions on how we can send it to all the users in that field.

 

Thankyou

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Saisree Kota 

it should work fine as there are lot of OOTB email notifications which uses watch list i.e. list type of field in recipient and it does work fine there.

AnkurBawiskar_0-1754469417242.png

 

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

6 REPLIES 6

JackieZhang
Tera Contributor

can you share your code? you can use JSON.stringify to transfer the List field to string and pass it to param2.

Bhuvan
Tera Sage

J Siva
Tera Sage

Hi @Saisree Kota 
Please share the pic of your config where you are triggering the event.
Regards,
Siva

kaushal_snow
Mega Sage

Hi @Saisree Kota ,

 

You can also achieve this using Flow Designer. Use Trigger condition as Record updated or any.

Query the list field values present then, use a For Each loop on the list of users. Inside the loop, add the Send Notification action with each individual user as recipient..

 

Try this once and let me know. If you find this helpful, please accept this as a solution and hit the helpful button..

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/