Export Salesforce attachments to encrypted S3

CRMMarketingDeveloper Tool

What it does

When a new or updated PDF appears in Salesforce, this automation searches for attachments. It downloads matching files and uploads them to Amazon S3 with encryption so records stay backed up.

Who it's for

Finance teams who need Salesforce attachments backed up to S3 without manual export.

How teams use this

Back up statement PDFs automatically

When finance uploads a statement PDF to Salesforce, it is instantly copied to S3. No manual export step is needed and the file is encrypted at rest.

Archive attachments by record type

Extend this automation to filter attachments by name or type before upload so only statements go to S3. Other file types stay in Salesforce only.

Sync to a compliance bucket

Point the upload step to a separate S3 bucket with stricter access controls so audit records are isolated. The automation logic stays the same.

How it works

  1. Monitor for new or updated PDF. Detect when a new or updated PDF is added to a Salesforce record so the automation knows to process it.
  2. Search for attachments in Salesforce. Search Salesforce for all attachments linked to that record so only relevant files are downloaded and processed.
  3. Download each attachment. Loop through the list and download each attachment file from Salesforce one at a time for upload.
  4. Upload to S3 bucket. Upload each downloaded file to Amazon S3 with encryption so the backup is secure and the records stay in sync.