The CreatorCon Call for Content is officially open! Get started here.

Can i get the deleted business rules back?

coolgirl
Mega Expert

Hi,

        I have deleted a couple of business rule unknowingly, is there anyway I can get it back?

Thanks,

Sam

18 REPLIES 18

Hi Sam,



You can manipulate the XML and reimport it, but I would rather:



1. If you have the business rule on another instance, import that one. If any changes have been made on the business rule, copy over those changes from the XML in the update set.



2. If you do not have the business rule on another instance, I would simply re-create it based on the XML information in the update set.


antonymirza
Tera Expert

Hello Sam,



business rule scripts are stored in "sys_script" table and by default system does not track deletion from tables which starts with prefix "sys" unless you add the table name in system property "glide.ui.audit_deleted_tables".



Therefore, if above property value in your instance does not include "sys_script" then you won't find it in deleted records and unfortunately cannot restore.



Brgds, AM


zica
Giga Guru

Sam,



To be able to retrieve a deleted BR, go from the navigation menu to 'deleted application file'.


Then select the source table in which the BR operated or just sort on the last deleted.


You will see again the sys_id of the BR.


Click on the little blue incon before the Name and enter on it.


Then restore the deleted record :


find_real_file.png



Kind regards,


ZA



Do not feel shy to mark correct or helpful answer if it helps or is correct


you will get like that :


find_real_file.png



Kind regards,


ZA



Do not feel shy to mark correct or helpful answer if it helps or is correct


Ah yes, as AKb Zic says, go to the Deleted Application Files module, it is normally hidden, but you can access it using the following URL: https://YOUR_INSTANCE.service-now.com/sys_metadata_delete_list.do , from here follow the instructions of AKb Zic and find your deleted business rule.