Sync Salesforce documents to Box with folder mapping

CRMMarketingSalesUtilitiesCollaborationDocument Management

What it does

When a new or updated document is submitted in Salesforce, this automation downloads attachments and uploads them to Box in the correct folder. It creates a shared link and updates the Salesforce record so the team has a single source of truth.

Who it's for

Operations teams who need to sync Salesforce documents to Box without manual file transfers.

How teams use this

Organize documents by type in Box

Map each Salesforce document type to a Box folder so contracts, proposals, and statements land in the right place automatically. The lookup table controls where files go.

Let sales teams access files from Salesforce

Sync documents from a sales pipeline stage to a Box folder so the sales team can access files without leaving Salesforce. The shared link appears in the record.

Add approval before upload

Include a condition to check a document status field and only upload when the status is approved. This ensures only finalized documents reach Box.

Notify teams when files are ready

Set up a notification to a Slack channel when the shared link is created so the team knows the file is available in Box. This keeps everyone in sync.

How it works

  1. Detect a new or updated document. A new document is submitted or an existing document is updated in Salesforce, starting this automation.
  2. Find the destination folder. Search the Document Folder Mapping lookup table to find which Box folder this document type belongs in.
  3. Retrieve all attachments. Search Salesforce for all attachments linked to the document so each one can be uploaded to Box.
  4. Upload and link files. Download each attachment from Salesforce and upload it to Box in the mapped folder. Create a shared link for each file and update the Salesforce record with the link.