How do i send notifications to Users by using List collector variable in catalogue item

Srinivasu2
Tera Contributor

Hi Community,

 

How do i send notifications to Users by using List collector variable in catalogue item

 

Thanks & Regards,

Srinivasu

 

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

Hi @Srinivasu2 

 

As per my understanding, You are capturing users in a List Collector variable and you want to send notification to those users.

 

Please let me know when you are trying to send the notification. Is it once the request is submitted or some other trigger?

 

Thanks,
Anvesh

Hi @AnveshKumar,

 

Notification will send once the request is submitted that to only Active Brazil Users

 

Regards,

Srinivasu Sagiraju

Anubhav24
Mega Sage
Mega Sage

Hi @Srinivasu2 ,

Once you have collected the all the users , then you need to make a call to backend script using GlideAjax please refer below URL :

https://www.servicenow.com/community/developer-articles/how-to-call-script-include-from-client-scrip...

 

Then once you have made a call to script include you can fo GlideRecord on user table to get the email Ids and then inside a loop use gs.eventqueue to trigger a notification.

before using eventqueue you have to also create a new event and then on your notification under when to fire select when event is triggered.

 

Please mark helpful/correct if my response helped you.