The problem: generated documents push your storage and you don’t notice until it’s too late
If you run document generation from Salesforce, you need to think about storage. Salesforce document storage limits crop up in two ways: individual file size and cumulative storage for the org. Choose the wrong target (Notes and Attachments vs Files) or generate large PDFs repeatedly and you’ll hit upload errors or force users to hunt for the right copy.
Salesforce document storage limits: what matters for generated PDFs
Two facts you need up front:
- DocuGen can create documents up to 40 MB.
- Notes and Attachments is capped at 25 MB by Salesforce and cannot be raised, so larger documents need Files.
That means any generated PDF between 25 MB and 40 MB must be saved to Salesforce Files. But it’s not just single-file caps you must plan for — you also need a storage policy for repeated runs. DocuGen will file the finished document on the record in either Files or Notes and Attachments depending on the template, and it will write the signed PDF back to the same record after signature.
Files vs Notes and Attachments: choose the right target
Pick Notes and Attachments only for small, infrequently generated files that are under 25 MB and where legacy systems expect the attachment object. Otherwise choose Files. Practical reasons:
- Any document >25 MB must be stored as Files when produced by DocuGen.
- Files supports modern sharing, preview, and tends to be the default for signing workflows; DocuGen writes signed PDFs back to the record in the same way it files the initial draft.
- Files lets you keep larger documents up to DocuGen’s 40 MB limit without upload errors; Notes and Attachments will reject them.
Calculate your document generation storage needs
Do a quick sizing exercise before you flip templates to Files across the org. Here’s a concrete, hypothetical scenario you can run against your own numbers.
Scenario
Say you produce 200 renewal contracts per month. Each generated PDF averages 12 MB before signature. You keep both the draft and the signed copy on the Opportunity record.
Monthly files: 200 renewals × 2 files (draft + signed) = 400 files
Monthly storage: 400 × 12 MB = 4,800 MB = 4.8 GB
Annual storage: 4.8 GB × 12 = 57.6 GB
If your PDFs were larger—say a 60-page agreement that compresses to 28 MB—you cannot store that in Notes and Attachments; you must use Files. And at 28 MB per file, the same math shows storage climbs quickly.
How to get accurate numbers
- Sample five real generated documents and note their sizes. Use the average, not the smallest or largest.
- Decide how many copies you keep per record (draft, signed, audit copy).
- Multiply by your monthly volume and roll that to a 12-month projection.
Practical admin controls to limit wasted storage
You can’t change Salesforce caps, but you can reduce waste with a few configuration choices and small automations:
- Save templates to Files by default. That avoids rejected uploads for larger documents and keeps your storage consistent.
- Use a naming convention that includes version or date (for example:
OpportunityNumber_Renewal_2026-10-30_v1.pdf). It makes duplicate detection and cleanup much easier.
- Trigger DocuGen on a stage change or a button, not on every small field update. DocuGen supports triggers by button, stage change, field change, or a new file—pick what reduces unnecessary runs.
- Create a simple Flow to remove or archive old generated documents. For example, before saving a new signed PDF, delete the prior signed file with the same name pattern on the Opportunity. DocuGen files documents to the record, so Flow can find and delete those Files if you want to limit retention.
- Test your retention and cleanup approach in a sandbox first—DocuGen works in sandboxes exactly as in production.
Signatures, bundles and storage implications
DocuGen bundles let you merge several templates into one signature run. Bundles are convenient but they can produce larger single PDFs if you merge many documents before sending. That again pushes you toward Files if any bundle exceeds 25 MB, up to DocuGen’s 40 MB cap.
Also remember: anchor-tagged signature positions survive repagination, but do increase the complexity and size slightly. Factor that into your per-document size estimate.
Checklist for admins before you flip templates to Files
- Sample document sizes and compute monthly/annual storage per scenario.
- Make templates write to Files for any expected >25 MB outputs.
- Create a Flow to remove or archive older generated documents on the same record.
- Test triggers (button, stage change) to avoid accidental mass generations.
- Run the whole process in a sandbox—DocuGen behaves the same in sandboxes as production.
If you follow those steps you’ll avoid sudden upload failures and keep your org from filling up with duplicate PDFs.
How Savvy DocuGen helps
Savvy DocuGen fills Word and PDF templates from any Salesforce record and files the finished document on the record in Files or Notes and Attachments per template. It creates signed PDFs back to the same record, supports bundles, uses anchor tags for signature positions, and supports documents up to 40 MB (so use Files for anything over 25 MB). Try it in your sandbox and use the checklist above to size and control storage.
Try Savvy DocuGen in a sandbox today.
Read next