AWS · Salesforce Integration
Eliminating Salesforce storage costs with AWS S3
QM Seals — Manufacturing & Distribution
Challenge
- Salesforce storage costs spiralling as files from quotes, orders, and partner uploads piled up
- No access control — files were publicly exposed or required manual sharing every time
- Partner Community users had no structured way to upload or access project files
- Orphaned S3 files kept accumulating with no cleanup when records were deleted
Solution
- Custom Attachment Link object saves only the S3 URL — zero binary data stored inside Salesforce
- Secure upload flow for Partners and Internal users, scoped to accessible records only
- Daily scheduled job auto-deletes Salesforce files once S3 upload is confirmed
- Apex trigger auto-removes S3 file on record deletion; failures logged to AWS_Deletion_Log__c
Benefits
- Major reduction in Salesforce storage consumption and licensing cost
- Files accessible only through authenticated Salesforce sessions — zero public URLs
- Partners self-serve file uploads without any admin help
- Zero orphaned files — S3 storage stays clean automatically, always
100%
Files moved off Salesforce storage
Daily
Automated cleanup of uploaded files
0
Public file URLs exposed
