Learning ServiceNow: Best way to recover a deleted Install Base Item on a Dev instance?

AbW
Tera Contributor
Hi everyone,
I’m currently new to ServiceNow and have been getting hands-on practice in my development instance. While working with the Install Base Item table (sn_install_base_item), I deleted a record and am now trying to learn the proper way to restore it to its original state.
I want to make sure I understand the "best practice" for this in a real-world scenario. Can someone help me?
 
2 REPLIES 2

vaishali231
Kilo Sage

Hey @AbW 

In ServiceNow, there is no direct “Undo Delete” option for records (including records from the sn_install_base_item table). The recovery approach depends on what recovery options are available in your instance.

1. Check the Recycle Bin 

Navigate to:

System Definition - Recycle Bin

Steps:

     Search for the deleted Install Base Item record

     Open the deleted entry

     Click Restore

This is the quickest and preferred recovery method if the record has not yet been permanently removed by cleanup jobs.

 

2. If the Record Is Not Available in the Recycle Bin

You can review historical information to help recreate the record manually.

Navigate to:

      System Logs - History Sets

      System Logs - History Lines

These records can help identify:

  • Previous field values
  • Related updates
  • Who modified the record

Note:
This does not automatically restore the deleted record, but it helps recover the original data.

 

3. Real-World / Production Best Practice

In production environments, the preferred recovery options are:

  1. Restore from instance backup
  2. Retrieve the record from another environment (after a recent clone)
  3. Reprocess the source integration/import if the data originated externally

If the Install Base Item was created through:

     Import Sets

     IntegrationHub

    REST/SOAP integration

    Discovery/CMDB sync

then re-running the source process is usually safer than manual recreation.

Best Practice Recommendations

For critical business tables:

  1. Restrict delete access using ACLs/roles
  2. Prefer “soft delete” approaches (for example, Active = false)
  3. Enable auditing where appropriate
  4. Maintain a proper backup and clone strategy
  5. Test deletion scenarios only in sub-production environments

 

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

If this response helps, please mark it as Accept as Solution and Helpful.

Doing so helps others in the community and encourages me to keep contributing.

Regards

Vaishali Singh

Servicenow Developer
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb



meghanakra
Tera Expert

In ServiceNow, when you delete a record, it is not immediately gone forever (in most cases). It goes to a system table called: Deleted Records table (sys_deleted_record)

Steps to recover

  1. In Application Navigator, search:
    👉 Deleted Records
  2. Open the module:
    👉 System Definition → Deleted Records
  3. Search for your table:

sn_install_base_item

  1. Locate your deleted record
  2. Open it → Click Restore Record

After restoring, always validate relationships and data to ensure everything is working correctly.
In real projects, avoid deleting records—use Active = false or Retired status instead.