Sync Salesforce records to Box attachments
CRMMarketingDocument/File
What it does
When a scheduled search finds RightsOwned records in Salesforce, this automation downloads matching files from Box and attaches them to each record. Someone can then access all related files without leaving Salesforce.
Who it's for
Sales operations teams who need to keep Salesforce records linked to files stored in Box.
Apps used
How teams use this
Keep files synced to deal records
Run the search on a daily schedule so all RightsOwned records in Salesforce stay current with the latest files from Box. The team sees everything in one place.
Attach files to a different object
Change the query to search Accounts or Opportunities instead of RightsOwned so files sync to those records. The rest of the flow works the same way.
Filter files by name or date
Add a condition to the Box search step so only files matching a specific pattern or modified after a certain date are downloaded. This reduces noise and keeps attachments relevant.
How it works
- Search for RightsOwned records. On a schedule, run a query in Salesforce to find all RightsOwned records that match the specified criteria in the search clause.
- Find matching files in Box. For each RightsOwned record, search Box for files or folders that correspond to that record so matching content is identified.
- List files in the folder. List all files and folders inside the matching Box folder so each one can be processed and downloaded.
- Download the file. For each file found, download its contents from Box so it can be attached to the Salesforce record.
- Attach to the record. Create an Attachment in Salesforce and link it to the RightsOwned record so the file is now accessible in the record.