Accidentally deleted a Business Rule and removed it from the Update Set - Any recovery options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello Guys,
I'm using ServiceNow Zurich and accidentally deleted a custom Business Rule. The deletion was captured in an Update Set, but I later removed the corresponding entry from the Update Set. Now I need to restore the Business Rule.
Current situation:
- The Business Rule is no longer present.
- It is not available in Deleted Records.
- I do not have another instance to retrieve it from.
- I do not have an XML export or backup.
- I have already removed the deletion record from the Update Set.
Is there any way to recover the deleted Business Rule in this situation? Are there any other recovery options, logs, or tables I should check in ServiceNow Zurich?
#update set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @TharshneK185996 , you can try as following:
- go to sys_update_version.list and search your Business Rule against 'Record Name' column
- ignore the Current state record as it will be Delete entry. Instead open the Previous state record and verify its 'INSERT_OR_UPDATE'
- Copy the payload and save outside in an XML file
- Now, Go to Business Rule list and import XML record (select from the header)
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
sys_script table is not enabled for audit delete as it's system table
it's not included in this property as well hence you can't recover that from UI-> glide.ui.audit_deleted_tables
i.e. in collection type dictionary entry doesn't have that attribute
Overwrites the default values of "glide.db.audit.ignore.delete.default"
You can get the script from "sys_update_version" and then re-create it
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @TharshneK185996 ,
Open this table : sys_metadata_delete.list
then in table name enter : business rule
Open that delete business rule then there restore option restore it .
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
15 hours ago
Refer: KB0748445 How to track and troubleshoot deleted or updated records
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti