function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mgodseymgodsey 

Using SOQL to access deleted records in the Workbench

Does the workbench keep record of deleted items indefinitely, or will they only show up in SOQL results if they are still in the recycle bin?

Best Answer chosen by Admin (Salesforce Developers) 
SFFSFF

Indefinitely? No.

 

Still in Recycle Bin? Yes.

 

You can also query deleted records for a two-hour window after they have been removed from the Recycle Bin. You can find more information about this here:

 

http://www.salesforcefast.com/2011/10/mass-undelete-from-system-log.html

 

Good luck!