Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Detect deleted records using REST API

Hapatil
Tera Contributor

Uusing servicenow as a web service provider and will be reading records using TABLE API for a given duration. For same duration, want to know how to find deleted records using Rest API.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Hapatil 

Deletion of records may or may not be stored based on auditing.

Use the Deleted Records module to restore a deleted record 

you can check this in sys_audit_delete table; but providing access to external systems for this OOB table is not a good practice

AnkurBawiskar_0-1694427877290.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Not applicable

Dear @Hapatil ,

 

One liner questions will not help, Can please brief your issue so that community can help to fix it ? 

 

 

 

Added

Not applicable

Hi !

 

Thanks,

 

Go to > All > System Definition > Deleted Records. 

Here you will find all the records which are deleted with a filter on given duration.

You can target this table with REST api to get the deleted records for a given period of time.

 

I hope this help !

 

what's table name?