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
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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Sohail Khilji
Kilo Patron
Kilo Patron

Dear @Hapatil ,

 

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

 

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Added

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 !

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

what's table name?