Archive encrypted Salesforce attachments to S3

CRMMarketingDeveloper ToolRecipe Tools

What it does

When a new or updated O t statement PDF appears in Salesforce, this automation downloads the attachment and encrypts it with PGP. The encrypted file is then uploaded to Amazon S3 for secure archival without exposing sensitive data.

Who it's for

Finance teams who need to archive Salesforce attachments with encryption for compliance and data protection.

How teams use this

Archive financial statements securely

Automatically encrypt and store O t statement PDFs from Salesforce to S3 without manual intervention. This ensures all financial documents are protected and archived according to compliance requirements.

Extend to other document types

Add filters to include tax forms, invoices, or contracts alongside O t statements. Only documents matching specified criteria are encrypted and uploaded to maintain consistent data governance.

Route encrypted files by department

Modify the S3 bucket path based on the Salesforce record owner or account type so different teams access their own encrypted archives. The encryption and upload process remains unchanged.

How it works

  1. Monitor for new PDF. Detect when a new or updated O t statement PDF attachment is added to a Salesforce record.
  2. Search for matching attachments. Query Salesforce to find all attachments matching the O t statement PDF criteria and verify the list contains records.
  3. Download the attachment. Retrieve the PDF file from Salesforce so it can be encrypted before storage in Amazon S3.
  4. Encrypt file with Pgp. Apply Pgp encryption to the downloaded attachment to protect sensitive financial data before uploading to the bucket.
  5. Upload encrypted file to S3. Store the encrypted attachment in Amazon S3 bucket for secure archival and compliance with data protection requirements.