We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Accidentally deleted a Business Rule and removed it from the Update Set - Any recovery options?

TharshneK185996
Tera Contributor

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

4 REPLIES 4

Nishant8
Tera Sage

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

Ankur Bawiskar
Tera Patron

@TharshneK185996 

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

 

AnkurBawiskar_0-1784527297679.png

 

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

AnkurBawiskar_1-1784527422322.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Aditya_hublikar
Giga Sage

Hello @TharshneK185996 ,

 

Open this table : sys_metadata_delete.list

then in table name enter : business rule 

Aditya_hublikar_1-1784530367483.png

 Open that delete business rule then there restore option restore it .

Aditya_hublikar_2-1784530439005.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

 

Tanushree Maiti
Tera Patron

Hi @TharshneK185996 

 

Refer: KB0748445 How to track and troubleshoot deleted or updated records 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti