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.

Select multiple records on workspace and do some processing

Syed14
Mega Guru

Use Case:

Consider, you want to send email to the 'caller' field of incident record.

Syed14_0-1752173061285.png

 

1 - Create a List Action :

  • Go to List Actions in navigator.

Syed14_0-1752171841984.png

 

  • Create a New list action and select client script in ‘Implemented as’ field:

Syed14_1-1752171841986.png

 

 

Syed14_2-1752171841989.png

  • Click on the ‘Confirmation Settings’ tab and fill as follows:

Syed14_3-1752171841990.png

2 - Create a Subflow:

  • Inputs:

Syed14_4-1752171940911.png

 

  • Actions:-

               -  Loop for each record:

Syed14_5-1752171940913.png

 

             -  Look up each record in incident table:

Syed14_6-1752171940915.png

 

            -  Send Email to each caller.

Syed14_7-1752171940918.png

3 - Create a script include:

Syed14_8-1752171940919.png

 

  • write subflow code snippet in script include to run subflow:

Syed14_9-1752171940921.png

 

You can add any other processing in subflow according to your reqiurement.

3 REPLIES 3

GlideFather
Tera Patron

Wow, very smart idea 💡 it can be helpful for Agents, thank you for sharing

PS: keep such ideas for the ServiceNow challenge that is usually in September/October, it could be amazing to present something similar there ;))

_____
This reply is 100 % GlideFather and 0 % AI

Thanks for your suggestion. 🙂

Syed14
Mega Guru

If you want to send dynamically created email, you can check my other Article