How to Bulk Download Files from Salesforce: The Ultimate 2026 Guide

How to Bulk Download Files from Salesforce (Every Method Compared)

Bulk download files from Salesforce means exporting many Files or Attachments across multiple records in one batch, instead of opening each record and saving files one at a time. Salesforce gives you three built-in routes: manual download, the Data Export service, and API or Data Loader queries. Each works for a narrow job. For filtered, record-level exports that stay linked to their parent records, most teams end up using a dedicated app such as Files Downloader.

This guide covers what you are actually exporting, where each native method breaks, and how Files Downloader handles it, written from the product’s real behavior, including its limits.

Know what you’re exporting: Files, Attachments and Documents

Most failed exports start here, because Salesforce has three storage models and they are not interchangeable. The first three characters of any record ID tell you which one you have.

  • Attachments (legacy): IDs start with 00P. Each one belongs to a single parent record.
  • Files (modern): stored as ContentVersion (068), which holds each version, and ContentDocument (069), which represents the file as a whole. A File is connected to records through ContentDocumentLink, so one file can be linked to many records.
  • Documents (classic): IDs start with 015.

The practical consequences: an Attachment method won’t download a File, a File has no single ParentId (you look at the link records instead), and a ContentDocument resolves to its latest published version.

Before any bulk job, run a quick pre-check to confirm something is actually attached. Bulk jobs against records with nothing linked return empty output and waste an afternoon.

 
sql
SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = 'RECORD_ID' LIMIT 1

Also check sharing. A user can see a record but not its file if the file’s privacy on records is set to private, or if no link row exists for that record.

Native ways to export files from Salesforce, and where they break

Downloading one at a time. Fine for a handful of files. The standard UI is designed around one record at a time, so it doesn’t scale, and it’s easy to grab the wrong version.

Data Export service. It runs weekly, monthly or on demand and can include Files and Attachments. It works well as a backup. The catch is that you can’t filter by record, so the result is a set of ZIPs plus CSVs, and you rebuild the file-to-record mapping yourself by joining the CSVs (ContentVersion with ContentDocumentLink for Files, and Attachment by ParentId).

Data Loader or the API. You query ContentVersion or Attachment and pull the binary field. You get precise filtering, but you also need to know SOQL, and the binary content often comes back as base64 text that you must decode and save with unique file names. If you already have IDs and an authenticated session, direct download URLs under /sfc/servlet.shepherd/ are scriptable, but they still need scripting.

 Manual downloadData ExportData Loader / APIFiles Downloader
Handles many records at once           ✗             ✔             ✔                    ✔
Filter by record, list view or query           ✗             ✗       ✔ (SOQL)                    ✔
Keeps file-to-record mapping           ✔

             ✗

(rebuild from CSVs)

       ✗ (manual)        ✔ (CSV included)
Needs SOQL or scripting           ✗             ✗               ✔    ✔ (SOQL optional                      on Pro)
Best for   A few files      Full-org                           backup       Developers    Admins doing targeted       exports

How Files Downloader handles bulk download files from Salesforce

Files Downloader, from Sastorm Software, is a Salesforce AppExchange app built for exporting Files and Attachments in bulk. It runs natively inside Salesforce and follows your permission sets and sharing rules, so files aren’t routed through an outside server. (The optional SharePoint integration is the exception, because it sends files to your connector SharePoint by design.)

It exports Salesforce Files (ContentDocument and ContentVersion) and legacy Attachments and Notes. Email attachments (EmailMessage, including those tied to Cases) are downloaded through the Email to Case option on the Unlimited plan. Common formats such as PDF, PNG, JPG, WEBP, CSV and text are supported, along with files that have no extension, and it preserves names, extensions and metadata. The app interface is visible only in Lightning Experience. Export files from Salesforce can also be done in Classic.

Setup

  1. Install from AppExchange. Search for Files Downloader, click Get It Now, choose your trial type and log in, then pick user access (admins, all users or specific profiles).
  2. Assign the permission set. Users still need the “File Downloader” permission set even after the install-time choice. In Setup, open Permission Sets, find it, click Add Assignments, choose users and set an expiry date if you want one.
  3. Open the app. Go to the App Launcher and select Files Downloader.
  4. Optional: add the record-page component. In Lightning App Builder, drag the DownloadFiles component onto an Account, Case or custom object page, activate it, and users can download that record’s files right from the page.

Install Files Downloader from the AppExchange →

Choosing what to export

You can export from list views (standard or custom), from a record page with the component, and from a few other sources depending on your plan:

  • SOQL (Pro): filter by date range, record IDs, relationships or Case criteria. For example, files from open high-priority Cases: SELECT Id FROM Case WHERE IsClosed = false AND Priority = 'High'. Test queries in the Developer Console first. Sample queries are in the SOQL guide.
  • Chatter and custom objects (Pro).
  • Reports and Email to Case (Unlimited).

Multi-select file type filters let you pull only PDFs, or PDFs plus images. Selection carries across pages, and a progress bar shows the download as it runs.

Volume

Bulk exports are where apps usually fall over, so the numbers matter. Files Downloader exports up to Salesforce’s governor limit, which works out to around 50,000 files in a single export. Data over 2 GB is delivered in parts, and an earlier 5,000-file cap on related custom objects has been removed. Larger jobs can run as Scheduled Background Downloads, which finish in the background and produce downloadable links, so your browser tab isn’t tied up. Cases, which usually carry the most attachments, got a specific speed improvement.

If you have more than 50,000 files for the objects you’re exporting, split the job into batches, for example, by date range using an SOQL filter (Pro).

What you get back

  • A ZIP of the selected files, with original file names.
  • A metadata CSV that covers exactly the files downloaded, including record IDs, object types, Case Number (when a file is tied to a Case), PrimaryParentId and PrimaryParentName.
  • An email summary for tracking and audit.
  • Naming and folder control: record IDs in file names (Pro), and the option to zip with subfolders (Unlimited). Salesforce Library folder structure can also be preserved.

List view export, the metadata CSV and the email summary come with every plan, including the trial.

A real example: keeping files attached to their records during an org migration

Steve Avon, a Salesforce architect at SFA Solutions LLC, needed to move files during an org migration without losing the link between each file and its record, the part native tools don’t make easy. The CSV that Files Downloader produced told him which file belonged to which record, so he could re-import into the new environment with the relationships intact. You can read the full case study or watch his video review.

The same pattern applies to backups, audits and offboarding: export with the mapping included, verify a sample, and only then clean up storage.

Which plan do you need?

PlanPrice (per year)Adds
Trial       Free30 files per day for 7 days
Starter       $499Standard objects, 1 sandbox, email support
Pro       $699SOQL, Chatter, custom objects, record IDs in file names, 2 sandboxes
Unlimited       $999Reports, Email to Case, zip with subfolders, per-user download analytics, priority support, 4 sandboxes

SharePoint integration is a separate $200 add-on. The trial is good for testing, but 30 files a day won’t cover a real migration.

Limitations worth knowing

  • Lightning only: the app interface doesn’t appear in Classic, though Classic files can be exported.
  • Latest version only: if you need every historical version of a file, use Data Export or an API query on ContentVersion.
  • Trial cap: 30 files a day for 7 days.
  • SharePoint is one-way: the integration syncs from Salesforce to SharePoint.

Where it fits best

Files Downloader also works on Experience Cloud, so partner and community users can download files from their sites. It supports Salesforce Nonprofit Cloud (NPC and NPSP), including Donations, Recurring Donations, Campaigns, Programs and Grants. It suits support teams working through Case attachments, admins preparing migrations, and anyone who needs a documented export.

Can you bulk download files from Salesforce natively?

Not in a filterable, record-aware way. The standard UI is one record at a time, Data Export can’t filter by record, and Data Loader or the API require SOQL and decoding. A dedicated app fills that gap.

Files (ContentDocument and ContentVersion) are the modern model, with versions and sharing through ContentDocumentLink. Attachments are the legacy object tied to one parent record. Files Downloader exports both, along with Notes, and handles email attachments through Email to Case on the Unlimited plan.

Export from a list view, use a record-page component, or filter with SOQL (Pro). Reports (Unlimited) are another route.

No. It exports the latest version only.

The app interface is visible only in Lightning Experience, but files from Classic can still be exported.

Up to Salesforce’s governor limit, around 50,000 files in one export. Data over 2 GB is delivered in parts, and larger jobs can run in the background. For bigger volumes, run the export in batches, for example by date range.

Start with the free trial to test your export, then move to the plan that matches the objects and sources you need.

Try Files Downloader on the AppExchange → · See pricing