Update bulk CI through background script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2025 01:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2025 01:49 AM
Hi @vinod6
May you try to update via Excel template, it's more safe once that you have huge volume
Import the Excel template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2025 01:53 AM
Hi @vinod6
A count of 4000 is quite large. Why not use the Import Update method? It’s easier and doesn’t require any code.
Steps:
-
Go to the cmdb_ci table.
-
Select the CI records you want to update.
-
Right-click on any field and choose Import.
-
Download the Excel file for update.
-
Make the required changes in Excel.
-
Upload the updated Excel back into the system.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2025 02:32 AM
Hi @vinod6 ,
MY POV- you should use Import set/ Transform map to update the records as it is quite safe and easy.
If my answer helped you, please mark it- solution accepted.
Regards,
Nikhil Bajaj
Regards,
Nikhil Bajaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2025 02:36 AM
What you are trying to update?