Categories
In this article
Salesforce is the world’s leading enterprise software company that provides Customer Relationship Management (CRM) services to over 150,000 businesses globally. Given the large amount of data that is stored in Salesforce, it is the responsibility of IT administrators to ensure that data is stored securely in the cloud so that business data is always available. Even though Salesforce is a secure platform, data loss due to human error is inevitable. Here is an extract from Salesforce documentation highlighting the importance of backing up your Salesforce data.
Even with the best of intentions, users and administrators have been in situations where they have either deleted large amounts of data or have modified records, only to later realize that a mistake was made. With tools like the data loader, it is very easy to mass delete or update records and a simple mistake in your source file or field mapping could spell disaster for your data. It is recommended that you keep a regular backup of your data and to do a manual point-in-time backup before you proceed with any major data project within your org.
While Salesforce recommends using third-party cloud backup solutions, more than 30% of businesses still rely on Salesforce Data Export Service or similar tools to back up their Salesforce data. This article explores the various options available to export Salesforce data, and its limitations as a backup solution.
*All the steps and screenshots used in the article are corresponding to Salesforce Lightning experience. (Since its launch in 2015, Salesforce has been actively promoting Lightning experience over Salesforce Classic, encouraging all Classic users to switch to Lightning)
Available in both Salesforce Classic (not available in all orgs) and Lightning Experience
User permissions needed:
Note: Users with the “Weekly Data Export” permission can view all exported data and all custom objects and fields in the Export Service page. This permission is granted by default only to the System Administrator profile because it enables wide visibility.
Step 1: Go to Setup, enter “Data Export” in the Quick Find box, and select Data Export.
Step 2: Click Export Now or Schedule Export.
The Export Now option prepares your files for export immediately. This option is only available if enough time has passed since your last export.
The Schedule Export option allows you to schedule the export process weekly or monthly.
Step 3: Choose the preferred export settings and click Start Export (if you chose Export Now in Step 2) or Save (if you chose Schedule Export in Step 2).
Note:
If you want to have spaces instead of carriage returns or line breaks in your export files, select Replace carriage returns with spaces. This selection is useful if you plan to use your export files for importing or other integrations.
When you have to select the types of data to include in your export under the option Exported Data, keep the following in mind:
-The Include all data option selects all objects for export at the time the checkbox is selected. For a recurring scheduled export, be sure to reselect the Include all data option to include newly created objects. (Source: https://help.salesforce.com/s/articleView?id=sf.admin_exportdata.htm&type=5)
Heavy Salesforce traffic can delay export delivery. Sometimes, your first request will still be in the queue when your next request is made, as specified in the Salesforce Help page.
Data loader is a client application developed by Salesforce that needs to be installed separately. The application allows you to perform mass data operations like import, export, update, or delete in Salesforce. It can be operated either through the user interface or by generating the command line. The latter option is useful if you want to automate the data export process or integrate to another system through API. Learn more about Data Loader.
Available in both Salesforce Classic (not available in all orgs) and Lightning Experience
User permissions needed:
Step 2: Open the Data Loader. Click Export. If you also want to export archived activity records and soft-deleted records, click Export All instead.
Step 3: Enter your Salesforce username and password, and click Log in. When you are logged in, click Next.
Note: If your organization restricts IP addresses, logins from untrusted IPs are blocked until they are activated. Salesforce automatically sends you an activation email that you can use to log in. The email contains a security token that you need to add to the end of your password. For example, if your password is "example” and your security token is “1234567890”, you must enter example1234567890 to log in.
Step 4: Choose the object to be exported. If your object name is not listed, select Show all objects to see all the objects that you can access. The objects are listed by localized label name, with the developer name in parentheses.
Step 5: Choose the CSV file to which the data needs to be exported. Click Next.
Step 6: From the list of fields of the given object, choose the ones that need to be exported. You also have the option to add conditions to filter the records. If you do not select any conditions, all the data to which you have read access will be exported. An SOQL query will be auto generated based on your selections. Click Finish. Select Yes to confirm the export process.
Step 7: To view the CSV file, click View Extraction. To open the CSV file in associated external program such as Microsoft Excel, click the button Open in external program.
Note: Data Loader does not support exporting attachments. Alternately, one can use the weekly export feature in the online application to export attachments.
Data Export Wizard | Data Loader |
---|---|
For simpler/smaller exports of data | For complex/larger exports of data |
Can load up to 50,000 records | Can load up to 5 million records |
Supports all custom objects and only a few standard objects | Supports all custom and standard objects |
Supports scheduled export | Does not support scheduled export |
Delete operation is not available | Delete operation is available |
Does not require installation | Requires installation |
No option to select specific fields to be exported | Option to select the fields that need to be exported |
Only lets you export all the records for a specific object | Set conditions to filter the records that are exported |
Dataloader.io is a 100% cloud-based solution to import, export, update, and delete data in Salesforce. Originally developed by MuleSoft, dataloader.io has been brought into Salesforce family through Salesforce’s acquisition of MuleSoft. It can be accessed through your browser and has all the features available in Salesforce Data Loader, with some additional functionality such as the ability to schedule tasks, pull/push information from/into remote directories like FTP, Dropbox, and Box, and automatically find parent records based on text, not an ID.
Step 1: From Setup, enter Dataloader.io in the Quick Find box, then select Dataloader.io.
Step 2: Click Launch dataloader.io.
Step 3: Click Login with Salesforce. Uncheck the option I have a custom Salesforce domain and choose Production as the Environment. Check the option I agree to the Terms and Conditions and click Login. Click Allow.
Step 4: In the dataloader.io application, click NEW TASK-> EXPORT.
Step 5: Leave the Connection selection as it is and select the object that needs to be exported from the Objects list. For example, select Account. Click Next.
Step 6: Select the fields that need to be exported. You can select the fields you want from the selected object and its related objects too. You can also filter the records to be exported by selecting the required conditions. You can also specify the order in which the records will be listed. An SOQL query will be auto generated based on your selections. Alternately, you can add a custom SOQL query to meet specific requirements. Click Next.
Step 7: A summary of the export task will be displayed.
You can choose to schedule the export hourly, daily, weekly, or monthly. Choose None if you want to export the data just once. Check the option Send me the results via email if you want to receive email notifications every time the task runs. Under the Advanced tab, you can specify the data format, timeout, and set the limit to a specific number of records. By default, once an export task runs in the Data Loader, you can obtain its output by either clicking on the latest run displayed in the task manager, or by looking at the task's history; you then download the file through your browser. Alternately, you can select a location under the tab Add Destination Folder to send the exported data to. (Since Data Loader provides direct connectivity to FTP, SFTP, Dropbox, and Box.)
Step 8: After selecting your specific requirements in Step 7, click Save & Run.
Step 9: Once the task is completed, click on the link next to the Task Run number to download the CSV file containing your export.
Data Loader | Dataloader.io |
---|---|
Client application developed by Salesforce | 100% cloud-based solution, originally developed by MuleSoft |
Requires installation | Does not require installation |
Does not support exporting attachments | Supports exporting attachments |
Does not support scheduled export | Supports scheduled export |
Can load up to 5 million records in a single export | A limit of 10,000 records per month in the free version |
Available in: Salesforce Classic (not available in all orgs) and Lightning Experience
User permissions needed:
Step 1: Navigate to the Reports tab. Click on the drop-down arrow next to the report you want to export and select Export.
Step 2:Choose an Export View from the two choices: - Formatted Report view exports the report as it appears in Salesforce, with the report header, groupings, and filter details. Since the formatting is retained, you cannot choose an encoding and the only supported file type is .xlsx. - Details Only view exports each detail row without the formatting. Choose this view if you need to do further calculations or upload it to other systems. If you choose Details Only, select the preferred formatting and encoding options.
Step 3: Click Export.
Additionally, if you want to receive the report via email, use the Subscribe option from the drop-down list to subscribe to email notifications. This will send you a report on a daily, weekly, monthly, or condition-based basis with the report details.
When exporting a report in Lightning Experience as Formatted Report or .xlsx Details Only, you can export only up to 100,000 rows and 100 columns.
Historical trending reports cannot be exported.
Joined reports can include a maximum of 2000 rows and are available for export only as a Formatted Report.
Step 1: To export data, open a blank Excel workbook, click on the Data tab, select Get Data -> From Online Services -> From Salesforce Objects
Step 2: In the new window that opens, select the environment you want to connect to and sign into Salesforce.
Step 3: Once you log in to Salesforce, select the objects you would like to extract to Excel from the Navigator window. If you want to export more than one object, click on the Select multiple items check box. On the right, you can preview a table. Click Load to export the data to Microsoft Excel.
Expensive ($439.99 per Microsoft Office Professional license)
Though native data export options are useful for creating backups of your Salesforce data, they fall short in several ways when it comes to data restoration. Restoration from the exported data requires manual effort, deduplication, and the use of spreadsheets, all of which takes up a lot of time. To perform a manual restore, you must know exactly what data needs to be restored, where it needs to be restored, and in what order, so that object relationships are preserved. Failure to do this can result in incomplete restores or even data corruption.
With third-party cloud backup solutions such as SysCloud, administrators can easily export all Salesforce objects as .csv or .xlsx files, in addition to effortlessly backing up all standard and custom objects, metadata, Apex triggers, and chatter. Admins can easily restore data from any point-in-time backup snapshot and maintain object relationships. SysCloud can also identify ransomware files and compliance issues in the Salesforce data being backed up.
Click here to learn more about SysCloud backup for Salesforce.
Excel Original Interface is a built-in Salesforce to Excel connector that lets you export data from Salesforce into Excel. Learn how to export Salesforce data to Excel using Excel Original Interface.
Yes, you can export Salesforce reports to Excel from the Salesforce UI. You can export report data as a Microsoft Excel (.xlsx or .xls) file or comma-separated values (.csv) file. Learn how to export a Salesforce report to Excel
You can export a list from Salesforce to CSV using the List View Exporter, which enables you to create a list view button for any standard or custom object. This will allow you to export your list view to a CSV file.
Learn how administrators can take Salesforce metadata backup using Package Manager, change sets, sandbox refresh, Ant tool, native backup, and SysCloud.
Read nowLearn how administrators can take Salesforce metadata backup using Package Manager, change sets, sandbox refresh, Ant tool, native backup, and SysCloud.
Read nowLearn how to back up Salesforce data using Data Export Service, Report Export, Full Copy Sandbox, Data Loader, Salesforce native backup & third-party solutions.
Read nowIn this article