Sync Salesforce attachments to OneDrive

CRMMarketingDocument/File

What it does

When someone uploads an attachment to Salesforce, this automation downloads it and stores it in OneDrive. The file syncs automatically so both systems stay in sync without manual uploads.

Who it's for

Sales operations teams who need Salesforce attachments backed up to OneDrive without switching between apps.

How teams use this

Back up deal files automatically

When a sales rep attaches a contract or proposal to a Salesforce opportunity, the file lands in OneDrive instantly. The team has a central archive without asking reps to upload twice.

Store account documents in shared folders

Route attachments from Salesforce accounts to a OneDrive folder by account name so finance and legal can find all related files in one place. Only the destination folder changes per account.

Filter and archive only approved files

Add a condition to upload only attachments with specific file types or names so sensitive files stay in Salesforce. This requires a filter on the attachment name or extension.

How it works

  1. Detect a new attachment. When an attachment is uploaded to a Salesforce object, this automation starts and retrieves the file details and content.
  2. Download the attachment. Download the attachment from Salesforce. Files larger than 25 MB are skipped to keep the process reliable and prevent storage issues.
  3. Upload to OneDrive. Upload the file to OneDrive using the file content so it is stored alongside other team documents and backed up securely.