Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SF Mass ExtractorNew to Visual Studio Code? Get it now.
SF Mass Extractor

SF Mass Extractor

Abhishek Jatana

|
2 installs
| (0) | Free
Bulk-extract Salesforce data by batching External IDs into SOQL queries. SOQL autocomplete, saved queries, CSV export.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SF Mass Extractor for VS Code

Bulk-extract Salesforce data without Data Loader. Paste a list of External IDs (or any field values), write a SOQL query once, and the extension splits the IDs into batches, runs every batch against your org, merges the results and gives you a CSV.

It uses the orgs you already authorised with the Salesforce CLI, so there is no password, no connected app and no token to paste.

Features

  • Mass extraction by ID list. Paste thousands of IDs, choose the field to filter on, and the extension builds WHERE Field IN (...) batches for you. Duplicates are removed and counted.
  • Chunk size control. 1 to 1000 IDs per batch (default 200). Batches are also sized by encoded URL length so a query never exceeds the Salesforce GET limit.
  • SOQL autocomplete. Object names after FROM, field names for the object you are querying, relationship paths (Account.Owner.Name), and sub-select scopes. Object lists are cached and describes are limited to a small LRU so memory stays low.
  • ORDER BY stays last. The ID filter is added in the right place even when your query has ORDER BY, LIMIT, GROUP BY or sub-queries.
  • Org picker. Every org from sf org list is available. Switch between them from the panel. Expired sessions are refreshed from the CLI automatically and the request is retried once.
  • Saved queries library. Save a query with a name. The date and object are recorded for you. Search, filter by object or date, edit, delete with undo, import and export JSON.
  • Stop button. While a query runs, Execute Query turns into a red Stop button (or press Esc). The request in flight is aborted straight away and the records fetched so far are kept.
  • Rows to show. A box above the results sets how many rows the panel displays: default 100, minimum 1, no upper limit you have to stay under. The table only draws the rows on screen, so tens of thousands of rows still scroll smoothly. The panel displays at most 1,000,000 rows; exports always include every record.
  • Large results stay out of the UI. Rows are kept in the extension host and the panel receives only the rows you ask to see (100 by default). Copy and Download CSV use the full result set and stream to disk.
  • Automatic CSV splitting for Excel. An Excel sheet holds at most 1,048,576 rows. When a result is larger than your per-file limit (default 1,000,000 records), Download CSV writes several numbered files, for example export_part1of3.csv, export_part2of3.csv and export_part3of3.csv. Each file has its own header row and the records are spread evenly, so every file opens in Excel. If a result is too big to copy, Copy switches to saving files for you.
  • Open in Salesforce. Click a record Id in the preview to open it in your org.
  • Theme aware. Follows your VS Code colour theme (dark, light and high contrast).

Requirements

  1. Salesforce CLI (sf) installed.

  2. At least one authorised org:

    sf org login web
    

    If the panel cannot find a usable org it shows a Log in button that runs this command in a terminal.

Getting started

  1. Open the Command Palette and run SF Mass Extractor: Open Extractor.
  2. Pick an org (the CLI default org is selected for you).
  3. Enter a query, for example SELECT Id, Name, External_Id__c FROM Account.
  4. Choose the filter field, for example External_Id__c.
  5. Paste your IDs, one per line or separated by commas.
  6. Press Execute Query (or Ctrl+Enter / Cmd+Enter). Press Stop or Esc to stop it.
  7. Copy the result (Excel or CSV format) or download the CSV. Press Ctrl+S / Cmd+S to save the query to your library.

Select a SOQL query in any editor, right-click and choose Open Selection in Extractor to start from it.

Commands

Command What it does
SF Mass Extractor: Open Extractor Opens the extractor panel.
SF Mass Extractor: Open Saved Queries Opens the saved queries library.
SF Mass Extractor: Open Selection in Extractor Sends the selected text to the extractor as the query.

Settings

Setting Default Description
sfMassExtractor.sfCliPath sf Path to the Salesforce CLI. Only needed if sf is not on your PATH.
sfMassExtractor.queriesFile empty Absolute path of the saved queries JSON file. Point it at a synced folder to share queries across machines.
sfMassExtractor.defaultChunkSize 200 Default IDs per batch (1 to 1000).
sfMassExtractor.maxRowsPerCsvFile 1000000 Most records written to one CSV file (1,000 to 1,048,575). Larger results are split into numbered files.
sfMassExtractor.csvByteOrderMark false Add a UTF-8 BOM to downloaded CSV files so Excel shows non-Latin characters correctly.

The CLI path and queries file settings are machine scoped, so a workspace cannot redirect them.

Privacy and security

  • No telemetry and no analytics.
  • Network requests go only to your own org's instance URL. Any other host is refused.
  • The extension reads access tokens from the local sf CLI. Tokens are held in memory only, are never written to disk by this extension and are never sent to the webview.
  • Stored locally by VS Code: your last query draft, a short run history, and a cached list of object names and labels (24 hour expiry).
  • Saved queries live in a JSON file on your computer. The format is shared with the SF Mass Extractor Chrome extension, so you can move queries between the two.
  • In untrusted workspaces the extension does not use the workspace folder as the CLI working directory.

Notes and limits

  • Connecting takes a few seconds because every sf call starts the CLI.
  • Queries run through the REST API. Results larger than 2000 rows per request are paged automatically.
  • SOQL only. DML and Apex are not supported.
  • Results are held in memory while you work with them, so extremely large extractions (many millions of rows) need enough free RAM. Download them as CSV files and clear the panel when you are done.
  • Excel also cuts text cells longer than 32,767 characters. The CSV files contain the full text.

Also available as a Chrome extension

SF Mass Extractor on the Chrome Web Store runs inside your browser using your logged-in Salesforce session.


Developed by Abhishek Jatana. Released under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft