Can i get the deleted business rules back?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 02:44 AM
Hi,
I have deleted a couple of business rule unknowingly, is there anyway I can get it back?
Thanks,
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 03:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 03:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 04:35 AM
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 :
Kind regards,
ZA
Do not feel shy to mark correct or helpful answer if it helps or is correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 04:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 04:42 AM
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.