How to execute action on list of records more then 100 through "Action on selected rows".

Soni Rahul
Tera Contributor

Hi ServiceNow family,

Can anyone please tell me how I can execute one action in a single go on list view through "Action on selected rows", so that all records get updated in one go. 

SoniRahul_0-1705330590948.png

 

7 REPLIES 7

shubhamdubey
Mega Sage

@Soni Rahul 

 

Kindly check this update selected funtionality in list view.

I have attached the screenshot for your reference.

 

update selected.PNG

Hi @shubhamdubey 

Neither "Update selected" nor "Update all" works out as "Escalate"  is a button inside the record
So this method does not work

lakshyatrm_0-1705336211043.png

 

Hi @Soni Rahul  one workaround for this is to create a custom background script

 

1. get a copy of the query from the list view (right click on the list filter breadcrumb)

2. create a background script that iterates over the records using the filter condition

3. get a copy the ui action script (right click on escalate button at the bottom of the page)

4. add the script to the iterative loop created in step 2

5. execute the script

 

always test your code in a lower environment first.

 

Hope this helped

-- Bala Guthy

 

Please mark this as a solution or helpful as you see fit

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Soni Rahul 

 

Seems yours is very specific UI action. Max you can increase the list view count and then run the Escalate UI action. 

 

LearnNGrowAtul_0-1705334570000.png

 

 

Hope there is not action required after click on Escalate. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************