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
Dannielle Givens 2Dannielle Givens 2 

Undelete Records Using Workbench

About 3 minutes ago I deleted many records within my recycling ben. As they were deleting I noticed 1 record that looked unfamiliar. After much research I finally found the object it belongs to, but need help with my query. I am not a developer, but I'm using workbench to export that record. 

SELECT Id,Name FROM Account WHERE IsDeleted = true 

This was the formula I found on the Salesforce Knowledge article. Is there anything I should be changing to adjust to my custom object?
Squire Q KershnerSquire Q Kershner
In workbench, be sure to check the "Include Deleted and Archived Records" checkbox on the top right hand side of the SOQL query builder.  That being said, if you emptied your Recycling Bin, those records are no longer available for query.  The "IsDeleted" checkbox is what makes them appear in the Recyling Bin, but once completely deleted (either automatically after 15 days, or by Emptying your Bin) they are gone for good.