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
This helps other users find accurate and useful information more easily
- 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.
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
****************************************************************************************************************
- 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
ServiceNow Rising Star-2025
- 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?