How to restore accidentally deleted ATF test

Aruna1
Kilo Contributor

I accidentally deleted a test that I wrote in ATF. Is there a way, I can restore the test back.

 

I used deleted_Records and searched for "*atf", but when tried to recover - I got error

Error Message

Syntax Error or Access Rule Violation detected by database ((conn=279582) Table doesn't exist)
5 REPLIES 5

MrMuhammad
Giga Sage

HI Aruna,

ATF tables are not audited so I'm afraid we cannot restore records that belongs to ATF related tables. You will need to recreate the ATF. 

You can download and install below utility by @Paul Morris to automatically create your ATF and that will save you whole a lot of time. 

Regress - ATF Form Snapshot Recorder | Servicenow Share  

Hope that helps!

Regards,

Muhammad

Regards,
Muhammad

John Zhang1
Kilo Patron
Kilo Patron
  1. Navigate to Deleted Records (System Definition > Deleted Records)
  2. Locate the record you want to restore.
  3. Click the “Undelete Record” button.

Please see ServiceNow doc for more detail:

https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/table-administratio...

The SN Nerd
Giga Sage
Giga Sage

Tests are captured in Update Sets so you might be able to find the version record in there. 

You should be able to find the last update before a delete and revert to that version, potentially restoring the record.

Otherwise, copy the payload into an XML file and load it back in.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Aruna1
Kilo Contributor

I went recreating scripts from the beginning, as "Undelete records" didnot help me.