Update bulk CI through background script

vinod6
Tera Contributor

I want to update 4000 records in the cmdb_ci table based on the Name and Class fields to update the Scope. I prefer to do this only through a background script, not a fix script. Please provide a background script for this—it will be helpful for me.
Thanks in advance.

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@vinod6 

Which fields on those 4000 records you wish to update?

the value you are trying to update is a static one or it's dynamic?

Share some more details and screenshots.

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

AJ-TechTrek
Giga Sage
Giga Sage

Hi @vinod6 ,

 

It will be very helpful if you can provide the more details , what field you want to update on CMDB_CI table.

 

Background script is not the recommended way, instead you can use the Import set/Transform map.

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
 

Thank You
AJ - TechTrek with AJ - ITOM Trainer
LinkedIn:- https://www.linkedin.com/in/ajay-kumar-66a91385/
YouTube:- https://www.youtube.com/@learnitomwithaj
Topmate:- https://topmate.io/aj_techtrekwithaj (Connect for 1-1 Session)
ServiceNow Community MVP 2025