Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to send notification for all change task group after completing change request in servicenow

vamshi2
Tera Contributor

Hi Team

Please suggest configuration to send notification for all change task assignment group members after completing parent change request

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@vamshi2 

it's an easy requirement.

Simply have after update BR on CHG closure and use gs.eventQueue() to send email, recipients you can fetch from related change tasks associated to this CHG

I hope you are aware on how to use eventQueue(), BR and notification for this

Create an event 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar 

Thanks for the reply

i am implementing using flow design as shown 

vamshi2_0-1762773860013.png


vamshi2_1-1762773905022.png



it is working but it is triggering twice if user is part of two assignment groups of two change task so please suggest

 

@vamshi2 

you can do this then

1) in main flow create flow variable of type string

2) use For Each to iterate and get all Change Tasks Records

3) then within For Each use "Set Flow Variables" flow logic and append the group member, see the gif attached to this post

4) then create another string variable and use "Set Flow Variables" flow logic and store unique users into this based on the earlier flow variable

5) then use this 2nd flow variable as recipients

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@vamshi2 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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