Build a Salesforce bulk file downloader with Claude Code as the agent

A Salesforce admin had Claude Code write, test and deploy a free bulk file downloader, ending with 164 Jest and 64 Apex tests at 96% coverage, to replace a $90 per user AppExchange tool.

Done withClaude CodeinSalesforce· Nov 14, 2026

What they did

The poster, on r/salesforce, wanted to stop paying about $90 per user per year for an AppExchange add-on that zips up files attached to records. They wrote a spec and ran Claude Code on Fable 5.2 as an agent against a Salesforce org. It wrote the Apex classes, the Lightning Web Components and the tests, deployed them to the org, read its own failures and fixed them, and recorded the demo that sits in the README. The tool lets a user pick a list view, a search or a SOQL query and download every file on those records as a zip built in the browser, with a manifest and an error report. The poster steered and reviewed rather than writing the code.

How it went

The project shipped as an MIT repo on GitHub with 164 Jest tests and 64 Apex tests at 96% coverage. The poster has only tried it in a scratch org and a developer org in Chrome. Firefox, Safari, Professional Edition and multi-gigabyte runs are untested, a library with more than 5,000 files is refused rather than split, and install is still a source deploy with the Salesforce CLI. The thread had no replies with results yet.

Worth knowing

Coverage numbers come from the agent's own tests in non-production orgs, so the poster asks people to try it in a sandbox first. The design keeps file bytes out of Apex so it avoids heap limits, and it runs in user mode with sharing, so people only get files they can already see.

Try it

With Claude Code· 4 parts to fill in

Read the spec in [spec file] for a Salesforce tool that [what the tool should do]. Write the Apex, Lightning Web Components and tests it needs, keeping all queries in user mode with sharing. Deploy to [scratch org alias] with the Salesforce CLI, run the Apex and Jest tests, and fix whatever fails until they all pass with at least [coverage target]% coverage. Never deploy to a production org. When the tests pass, stop and show me a summary of what you built and what is still untested.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related