Document
A Document in Salesforce (Document in the API) is a legacy standard object that stores static files — typically logos, email letterhead images, brochures, templates, and other reference assets — inside Document Folders, accessible through the Documents tab in Salesforce Classic.
Definition
A Document in Salesforce (Document in the API) is a legacy standard object that stores static files — typically logos, email letterhead images, brochures, templates, and other reference assets — inside Document Folders, accessible through the Documents tab in Salesforce Classic. Each Document record holds a Name, a Body (binary blob), a ContentType, a BodyLength, an Url field for external references, an IsPublic flag, an IsBodySearchable flag, a Keywords field for search, and a FolderId pointing to its parent folder. Documents predate both Attachments and Salesforce Files (ContentDocument) and were the original way to store reusable assets that aren't tied to a single record. Their primary remaining use cases in modern orgs are email template imagery, letterheads, and public-facing static assets that need stable URLs (the IsPublicly Accessible flag generates a permanent unauthenticated URL — useful for embedding logos in HTML emails sent to customers without Salesforce logins). For new file storage, Salesforce strongly recommends Files (ContentDocument) instead.
In plain English
“A Document is the original Salesforce file-storage area — like a shared drive of company assets organized into folders. It's where logos, email header images, and static marketing PDFs lived in Salesforce Classic. Most file uploads today go to Files (a newer, better-featured object), but Documents are still around for letterhead images and a few other niche uses.”
Worked example
A marketing operations admin uploads a 50KB company logo PNG to a Document Folder named "Email Assets" in the Documents tab. She marks the Document as Publicly Accessible, which generates a stable URL like content/sf/document/0151..../logo.png. She then references that URL in an HTML Email Template's letterhead — when Salesforce sends the email to thousands of recipients, the logo loads from the Public Document URL without requiring recipients to authenticate to Salesforce. Years later when the company rebrands, she replaces the Document Body with the new logo (keeping the same Document Id and URL), and every email template instantly serves the new logo without needing template edits.
Why Document matters
The Document object is one of the few Salesforce objects with a built-in concept of public, unauthenticated access. Setting IsPublic = true on a Document, and placing it in a folder with public access, produces a stable URL that any browser can request without logging in to Salesforce. This was originally designed for embedding images in outbound emails to customers, but the same mechanism is sometimes (mis)used for hosting public assets — which carries security and storage-cost implications. Salesforce has discouraged this pattern in favor of dedicated CDN hosting, but it remains supported.
Documents live inside Document Folders, which are themselves their own object (Folder) with their own access controls (Public Read, Public Read/Write, Hidden). Folder access is the primary visibility mechanism for Documents — there is no per-Document sharing model. A user can either see all Documents in a folder or none, depending on their folder access. This coarse-grained model is one reason Files (with per-link sharing through ContentDocumentLink) replaced Documents for most use cases.
Documents do not appear in Lightning Experience by default. The Documents tab is hidden in Lightning, and Salesforce documentation flags the object as a legacy feature kept for backward compatibility. Modern orgs migrating to Lightning typically replace Document references with Files for new content while leaving existing Document records (especially email letterhead images) in place to avoid breaking outbound emails.
How organizations use Document
Stores company logos and email letterhead images as Publicly Accessible Documents, referenced by URL from dozens of HTML email templates. When the brand evolves, replacing the Document Body updates every template instantly without requiring template changes.
Inventories existing Documents during a Lightning migration, identifies which are still actively referenced by templates or processes, migrates the rest to Files for richer access controls and Lightning visibility, and retires unused Documents to free File Storage.
Continues to use the Documents tab as a shared content library with folder-based access controls. Sales reps download collateral PDFs from the appropriate folder and attach them to outbound emails. The team has not yet migrated to Files because the existing folder-based workflow is well-established.
Trust & references
Straight from the source — Salesforce's reference material on Document.
- Document in Object Reference for the Salesforce PlatformSalesforce Developer Documentation

Discussion
Loading discussion…