Archive Salesforce attachments to Box

CRMMarketingSalesUtilitiesCollaborationDocument Management

What it does

When a new or updated document is submitted in Salesforce, this automation retrieves each attachment and uploads it to Box. A shared link is created and stored back in Salesforce so the team accesses files from one place.

Who it's for

Sales operations teams who need Salesforce attachments stored in Box without manual file transfers.

How teams use this

Store deal attachments in Box

When a sales deal document is added to Salesforce, attachments like contracts and proposals are automatically uploaded to Box and linked back. The team accesses files from Salesforce without switching apps.

Route files by document category

Use the lookup table to send different document types to separate Box folders, such as invoices to Finance and proposals to Sales. Each team finds their files in the right place.

Add metadata tags to Box files

Extend this automation to set Box file tags based on the Salesforce document type or record owner. Files are easier to find and organize in Box with searchable metadata.

How it works

  1. Monitor for new documents. A new or updated document is submitted in Salesforce, starting this automation to move attachments to Box.
  2. Find the Box folder. Search the docType2FolderMap lookup table to match the document type to its destination Box folder ID.
  3. Retrieve all attachments. Fetch each attachment linked to the Salesforce document so the files can be downloaded and moved to Box.
  4. Upload and link files. Upload each attachment to Box in the matched folder, create a shared link, and store the download link for Salesforce.
  5. Update the document record. Update the Salesforce document with the Box file download link so the team can access it directly from the record.