How to restore a deleted UI policy

rocktheboat
Giga Contributor

Hello,

I have UI Policy that was deleted by mistake in the sandbox instance. It needs to be restore.

What is the safest way to do it. I am thinking of 'Export XML' from the other sub-production instance and then import the xml in to sandbox.

Thanks so much for reading and answering.

1 ACCEPTED SOLUTION

Matthew Swarts
Tera Guru

You can recover this UI Policy and all of its UI Actions from the sys_metadata_delete table.   They are not in the Deleted Records module.   I had to type in sys_metadata_delete.list in order to get to this table and its records.


View solution in original post

11 REPLIES 11

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Som,



Navigate to the module "Deleted records" to restore the deleted file. If this doesn't work the best way is export from prod and import it on sandbox instance. You will have to take export of UI policy and UI policy actions XML separately.


Matthew Swarts
Tera Guru

You can recover this UI Policy and all of its UI Actions from the sys_metadata_delete table.   They are not in the Deleted Records module.   I had to type in sys_metadata_delete.list in order to get to this table and its records.


You are right. They show up in deleted application file modules(only visible to Maint). Redirecting to the table sys_metadata_delete and restoring it from there should work.


Reference Accidentally Deleted Application Menu


I don't have access to the tables.