Email notification when comments added

dmahendran
Tera Contributor

I want to implement a functionality where an email notification is dynamically sent to two assignment groups based on the location selected in the Service Portal form. For example, if Location A is selected and the task is assigned to Assignment Group A, an email should be sent to all members of that group whenever additional comments are added to the task. Similarly, if Location B is selected and the task is assigned to Assignment Group B, the notification should be sent to its respective members.



Any help would be much appreciated

Thanks in Advance

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@dmahendran 

when should email be sent?

You can use flow on task table with Condition as Record Updated and Assignment Group is not empty

In that check what's the location and use "Send Email" flow action to send email

what challenge did you face with this approach?

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

@dmahendran 

Hope you are doing good.

Did my reply answer your question?

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

sunil maddheshi
Tera Guru

@dmahendran 

You can create a before/after business rule on required table with condition as additional comment changes, then trigger an event in script something like below:

gs.eventQueue("task.additional_comment_added", current, current.assignment_group, current.location);

Then use this event in the notification.

 

Please mark correct/helpful if this helps you.