How to Export Data from Salesforce

In Salesforce, data export is extracting system records, primarily for data backup, system integration, and generating reports in spreadsheet format.

We generally export data from Salesforce to Excel, requiring built-in functionalities or specialized external tools that facilitate data export into Excel format.

In this Salesforce tutorial, we will discuss the following three methods for exporting backup Data from Salesforce.

  • Export Data from Salesforce using the Data Export tool
  • Export Data using the Salesforce Data Loader
  • Export Data from Salesforce Reports

Export Data from Salesforce using the Data Export tool

To export or schedule an export in Salesforce Lightning, navigate to Salesforce Lightning’s setup page and follow the below steps.

1. On the setup page of Salesforce Lightning, go to the quick find box, and search then select data export under the heading Data.

Data export in Salesforce Lightning

2. The Data export wizard offers two options for exporting data from the org. The first option is to export at the current time directly, and the second is to schedule the export.

To export at the current time click on the button Export Now.

Export org data in Salesforce Lightning

3. In this window, we will set the export settings. First, activate the checkboxes in the top section to include images, documents, and attachments in the export.

In the Exported Data section, select the objects you want to include in the export. Otherwise, click on the checkbox Include all data.

After selecting the data records, click on the button Start Export.

See also How to Grant Access Using Hierarchies in Salesforce

Export org data to csv file in Salesforce

4. Now, the export of the selected records will be started, and after completion, we can see the zipped folder, and there you can see the exported files in csv format.

Download the backup data in Salesforce

5. If you have to schedule a data export, click the Schedule Export button in the data export wizard.

Data export to excel in Salesforce Lightning

6. In this window, select the region’s ISO code from the dropdown field Export File Encoding.

After this, activate the checkboxes in the top section to include images, documents, and attachments in the export.

Salesforce Lightning Export data

7. In the frequency field, there will be two options to schedule, either from the day of the month or the specific weekday of the month.

For example, we can select “On day 5 of every month” or “On the 1st Sunday of every month”.

Schedule export in Salesforce Lightning

8. Select the time duration for the scheduled export from the fields Start date and End date fields then select the scheduled time for export from the field Preferred Start time.

At last, select the time for scheduled data export, then click on the Save button.

Select Date time for export in Salesforce

As we click on the Save button, the report will scheduled according to the selected date and time.

In this way, we can export data and schedule a data export in Salesforce Lightning by following the above steps.

Export Data using the Salesforce Data Loader

You must have installed the Salesforce Data Loader tool on your system to export the data.

Follow the below steps to export Data from the data loader. In this example, we will export the data of the Contact object.

1. Open the Data Loader tool and click on the Export button.

Export data from salesforce to excel

2. Login with your user credentials.

Mass data export in Salesforce

3. Click the checkbox Show all Salesforce Objects, then select the object you need to export the data from.

After this, enter the name, and browse the location of the extract file, then click the Next button.

how to export data from salesforce to excel

4. In this step, select the fields from the checkboxes. We can also apply conditions to filter out the records.

In this example, to filter the records, I have added a condition to filter records with Mailing Country as USA, and for that Field will be MailingCountry, and Value will be USA. After adding this, click on the Add Condition button.

At last, click on the Finish button.

export salesforce data with data loader

5. In the warning message, click the Yes button to proceed.

Use data loader to mass export data

6. Now, the data export operation will start, and after it is completed, we will see the number of successful extracts and errors that occurred during the operation.

To view the extracted data in the data loader CSV viewer, click on the View Extraction button.

Data loader Mass data export

7. To open the extracted data in the Excel file, click the Open in external program button or Close button to end the data operation.

How to Mass export data in Salesforce

To access the Excel file, navigate to the location you selected for the CSV file in step 3.

This way, we can extract data from Salesforce using the data loader tool by following the above steps.

Export Data from Salesforce Reports

To Export Data from Salesforce Reports, you must have an existing report or Create a Report of the data you want to export.

Follow the below steps to export data from reports.

1. Click on the App Launcher and search, then select Reports.

Export data from Salesforce reports

2. In the report tab, select the Report.

How to export data from Salesforce reports

3. Click on the dropdown near the Edit button and select Export.

Salesforce Report export data in Excel

4. In the Export view, we have two options: Formatted Report and Details Only.

  • Formatted Report: This option exports the report, including the report header, groupings, and filter settings.
  • Details Only: This option exports only the detail rows. This option is preferred for further calculation or data uploading to the systems.

After selecting the export option, select the file Format and click the Export button.

Salesforce Data Export from Reports to Excel

Now, you can access and rename the Excel file from the download folder.

This way, we can export the data from the Salesforce reports to Excel.

Conclusion

In Salesforce, the Data Export Wizard and Data Loader are efficient tools for exporting org data, whether for analysis, backups, or information migration between Salesforce instances.

We also discussed exporting data from Salesforce reports in Excel format. Following the above examples might help you gain insights into exporting data and scheduling a data export in Salesforce.

You may like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.