Can we add or remove group based on condition in mail script sevicenow

mishra007
Tera Contributor

there is a requirement where i need to send if  a condition returns true otherwise not, i had used gliderecord method and added email.addAddress , but is it is not working, is there any other way??

1 REPLY 1

saurabh_dubey
Kilo Sage

Hi @mishra007 ,

 

I think you have to share the mail based on a condition and include a specific group if the condition return true am I right @mishra007.

 

My suggestion is that you can use gs.eventQueue method for this you have to create a event and based on the event the notification mail will be share. This is the right approach, you can trigger the event via Business rules, Scheduled jobs, Flow designer or Workflows as well.

 

If my answer serves the purpose do hit the helpful button.

 

Thanks,

Saurabh Dubey.