Sub topic 3
Scheduling a Full Export with the Data Export Service
This chapter assumes you know what Salesforce objects, records, and fields are. It also assumes you can sign in to an org (a sandbox or Developer Edition org is enough) with an administrator profile. The chapter covers the built-in tool that exports every record in an org without any code.
What the service does
The Data Export Service is a Setup feature that packages your org's data into CSV files. It then emails you a link to download them as ZIP archives. You do not write queries or manage API calls. This makes it the simplest way to get a full copy of your records.
It exports data only. It does not export metadata such as custom object definitions, Apex classes, or flows. Back those up separately, as a later chapter explains.
Scheduled and on-demand exports
You can run an export in two ways:
- Scheduled export. Salesforce runs the export automatically on a recurring basis. Available frequencies depend on your edition. Many editions offer weekly or monthly schedules.
- Export Now. You request a one-off export. Salesforce limits how often you can do this, and the minimum wait between requests also depends on your edition.
Check the current limits for your edition in the Salesforce documentation before you rely on a specific schedule.
Setting up a scheduled export
- In Setup, enter Data Export in the Quick Find box and select Data Export.
- Choose Schedule Export.
- Select the encoding for the files. UTF-8 is a safe default.
- Decide whether to include images, documents, and attachments. Also decide whether to include Salesforce Files and Salesforce CRM Content versions. These make the export much larger.
- Choose the frequency, start date, and end date.
- Select the object types to include. Choose Include all data for a full backup, or clear the box and pick objects one by one.
- Save the schedule.
Downloading the files
When the export is ready, Salesforce emails the user who set it up. The link leads to the Data Export page in Setup, where you sign in and download each ZIP file. Large orgs produce several files, so download all of them.
Limits to know
- No filtering by date or field. You choose objects, not rows or columns. Each export is a full copy, not an incremental one. For incremental exports, use SOQL with Data Loader or the CLI, covered in later chapters.
- No automatic storage. Salesforce does not keep the files for you. You, or a script or process you build, must move them to storage you control.
- Some data is not included. Check the documentation for objects and data types that the service omits.
Exercise
A teammate schedules a weekly export and assumes Salesforce stores the files safely forever. Name two problems with this assumption.
Show answer
First, the download links expire after a limited time (currently 48 hours), so files that nobody downloads are lost. Second, Salesforce does not store the files for you. Someone must download them and keep them in secured storage with a retention policy. The export also contains only data, not metadata, so it is not a complete backup.