This article explains how to mass restore (undelete) a large number of records from the Salesforce Recycle Bin. When records are accidentally deleted in Salesforce, they are moved to the Recycle Bin and retained for 15 days. While you can manually restore records one by one from the Recycle Bin UI, there is no 'Restore All' button for bulk restoration.
For Salesforce editions with API access, you can use Workbench or Data Loader's Export All feature to identify deleted records and perform a bulk Undelete operation
To bulk restore records, you will use Workbench to query deleted records (IsDeleted = TRUE) and then perform an Undelete operation using a CSV of the record IDs.
Alternatively, use Data Loader's Export All feature to generate the CSV.
Salesforce editions with API Access may be able to bulk restore records via an Undelete() API call using client tools such as Workbench.
| Note Salesforce does not provide support for Workbench or Excel features or functionality and can't perform data management or manipulation tasks on a customer's behalf. The following information is provided as a courtesy and to serve as general guidelines for customers. See Workbench Support for questions and assistance with Workbench. |
Note: You can add any additional filters of your choice by clicking the green (+) button.
Select From File | Browse... and select the CSV file you just saved. The file should contain all of the Ids for the records you'd like to restore | Next. Map the Id field to the ID column in your CSV and select the Map Fields button and lastly the Confirm Undelete button.
A response will display to indicate if the recovery was successful or if any records returned an error message.
000384757

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.