Sync Box files to Salesforce cases

Document/FileCRMMarketing

What it does

When someone uploads a file to Box, this automation searches Salesforce for a matching case by folder name. If found, it attaches the file to that case so the team has all documents in one place.

Who it's for

Sales teams who store case files in Box and need them linked to Salesforce records automatically.

Apps used

How teams use this

Keep case files in sync

Upload a contract or proposal to Box and have it appear on the Salesforce case automatically. The team sees all documents without switching apps.

Match files by case number

Change the search to match by case number instead of folder name so files upload to the correct case even if folder names differ. The attachment flow stays the same.

Add file tags to the case

Include a step that reads Box file tags and adds them as Salesforce case tags so documents are categorized. Set up a mapping between Box and Salesforce tag values.

Notify the case owner

Send a Slack message to the case owner when a file is linked so they know a new document arrived. Only notify if the file is not a duplicate.

How it works

  1. Detect a new file in Box. A file is uploaded or updated in a Box folder that corresponds to a Salesforce case, triggering this automation to begin.
  2. Find the matching case. Search Salesforce for a case with a name that matches the Box folder name so the file reaches the right record.
  3. Check if the file exists. Search Salesforce for a content document with the same file name to avoid attaching duplicates to the case.
  4. Download the file from Box. Retrieve the file contents from Box so it can be uploaded to Salesforce and linked to the matching case.
  5. Link the file to the case. Upload the file to Salesforce and link it to the matching case as a content document and feed item for visibility.