How to restore accidentally deleted ATF test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 10:55 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 11:06 AM
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
Regress - ATF Form Snapshot Recorder | Servicenow Share
Hope that helps!
Regards,
Muhammad
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 04:25 PM
- Navigate to Deleted Records (System Definition > Deleted Records)
- Locate the record you want to restore.
- Click the “Undelete Record” button.
Please see ServiceNow doc for more detail:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 09:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2021 09:06 PM
I went recreating scripts from the beginning, as "Undelete records" didnot help me.