Sync Salesforce opportunity files to Box

CRMMarketingDocument/File

What it does

When a new opportunity with attachments is created in Salesforce, this automation searches Box for a matching folder by opportunity ID. If no folder exists, it creates one and uploads all attachments there.

Who it's for

Sales operations teams who need opportunity files organized in Box without manual uploads.

Apps used

How teams use this

Organize deal files in Box automatically

When a sales rep creates an opportunity with contracts or proposals in Salesforce, files move to Box in a folder named for that deal. The team finds all deal documents in one place without manual work.

Route files to a specific Box folder

Set a parent Box folder where opportunity folders are created, so all deal files stay in a sales archive. The automation creates subfolders by opportunity ID within that location.

Sync contracts to a legal review folder

Point this automation to a Box folder used by the legal team so contract attachments from Salesforce opportunities are available for review. Only the destination folder changes from the default setup.

How it works

  1. Detect a new opportunity with files. A new opportunity is created in Salesforce with one or more attachments. This automation only runs when the opportunity has files to upload.
  2. Search for a matching Box folder. Search Box for a folder with the Salesforce opportunity ID. If a folder already exists, the automation skips folder creation and moves to upload.
  3. Create a Box folder if needed. When no matching folder is found in Box, create a new folder named after the Salesforce opportunity so files have a dedicated location.
  4. Download each attachment from Salesforce. For each file attached to the opportunity in Salesforce, download the file contents using the file ID so it can be moved to Box.
  5. Upload files to the Box folder. Upload each downloaded attachment to the Box folder. All opportunity files are now stored together in Box and linked to the opportunity ID.