Files Connect is a Salesforce feature that allows users to access, share, and attach files stored in external file systems (like Box, Google Drive, and SharePoint) without importing them into Salesforce. Files remain in the external storage location, ensuring a single source of truth, while Salesforce users can interact with the files seamlessly.

In this blog post, we’ll integrate Salesforce Files Connect with Box:

  • Access Box files within Salesforce without switching between systems
  • Link external files to Salesforce records, like opportunities, leads, and cases
  • Ensure secure file sharing with permissions managed through Box

Here’s how you can set up the integration:

Before starting, ensure you have:

  • A Salesforce Enterprise, Unlimited, or Developer Edition
  • A Box Admin Account to configure API access
  • Salesforce Admin permissions to set up Files Connect
  1. Go to Setup in Salesforce
  2. Search for Files Connect in the Quick Find box
  3. Enable Files Connect and save the changes
  1. Log in to your Box Developer Console at developer.box.com
  2. Create a new app and select Custom App

3. Select an Authentication Method User Authentication (OAuth 2.0)

4. After creating the app, note down the Client ID and Client Secret

5. Ensure the app has the necessary permissions (Read and write all files and folders in Box)

  1. Go to Setup > Auth. Providers
  2. Click New and select Open ID Connect as the provider type
  3. Enter the following details:
    • Name: Box Auth Provider
    • Consumer Key: The Box Client ID
    • Consumer Secret: The Box Client Secret
    • Authorize Endpoint URL: https://account.box.com/api/oauth2/authorize
    • Token Endpoint URL: https://api.box.com/oauth2/token
  4. Save the configuration. Salesforce will generate a Callback URL—copy this and update it in your Box app settings.
  1. In Salesforce, go to Setup > External Data Sources
  2. Click New External Data Source and fill in:
    • Name: Box External Data
    • Type: Files Connect: Box
    • Identity Type: Per User (if individual access) or Named Principal
    • Authentication Protocol: OAuth 2.0
    • Auth Provider: Select the Box Auth Provider created earlier
  3. Validate and sync the external data source to connect Salesforce with Box
  1. Assign Files Connect Cloud permission to users via Permission Sets or Profiles
  2. Ensure users have access to the Box external data source and Box external object(minimum Read access)
  1. Navigate to the Files tab in Salesforce
  2. Select Connect to External File System and choose Box
  3. Authenticate using your Box credentials
  4. Verify that you can browse and link Box files to Salesforce records

If the “Files” section is not visible on the record page:

  1. Go to SetupObject Manager
  2. Select the object (e.g., Opportunity, Lead, or Case)
  3. Go to Page Layouts (Opportunity) and edit the relevant page layout
  4. Ensure the “Files” related list is added to the layout
  5. Save the changes
  6. Open any Opportunity record, under Files Related Tab, click Add File

7. Under the Connected Sources, select the File and click Add button

Integrating Salesforce Files Connect with Box offers a seamless way to manage, access, and share files while keeping them secure in Box. However, if you need advanced features such as file editing, offline access, or robust reporting, consider exploring third-party solutions from the Salesforce AppExchange.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *