How to Integrate Document Management System with Salesforce using Salesforce Files Connect

Surface files from Google Drive, SharePoint, Quip or Box inside Salesforce

With Files Connect, Salesforce users can access, share, and search files stored externally (in systems like Google Drive, SharePoint, Quip or Box) from inside Salesforce. The setup process to connect to each external data source is different, and it varies by each data source.

Google Drive is the most common use case for Files Connect as a lot of small and medium-sized organizations are using Google Suite of business apps to run their business. Hence, for the purpose of this blog post, I’ll walk you through how to connect to Google Drive using Files Connect. Once connected, you can use your Google Drive files in Salesforce to attach to records and share with your colleagues.

There are two important points that you need to note with regard to Salesforce Files Connect:

1. File Sharing

There are two types of File Sharing methods in Files Connect, i.e.:

  1. Copy: This method creates a copy of the external files in your Salesforce org, which in turn counts against your org storage. The Salesforce copy of the file doesn’t get updated when the source file is modified. The new version needs to be manually updated. File access and sharing is based on Salesforce sharing settings as the file resides in the org.

  2. Reference: This method creates a reference to the file in an external repository; hence, it does not use org storage. It always shows the latest file in the Salesforce file preview and points to the latest version of the file when clicked on the external data source link. File access and sharing is based on the external data source access and sharing settings. In this blog post, we will use this method.

2. Identity Type

  1. Per User: Select Per User to require separate credentials for each user who accesses the data source. With this identity type, users will only be able to see and access the files that they can access on the respective document management system. Also, in Salesforce, the admin must enable the data source for specific permission sets and profiles. Users will then need to enter their credentials when accessing the data source for the first time. In this blog post, we will use this method.

  2. Named Principal: Select Named Principal to use the same set of credentials for every user who accesses the data source from Salesforce.

Connecting to Google Drive from Salesforce is easy but requires you to be a bit familiar with APIs and credentials. If you have ever created a connected app in Salesforce, then you might already be familiar with the terminologies we’ll be using in this blog post.

That’s enough talk. Get yourself a coffee, wear your Architect’s hat, and get ready to dip your toe in the water. Here’s what this guide covers.

After going through it, you will learn how to:

  1. Enable Files Connect

  2. Assign Permissions to Users to Access Files Connect Data Sources

  3. Configure Google for Access

  4. Create an Authentication Provider for Google Drive

  5. Define an External Data Source for Google Drive

  6. Access Google Drive Files in Salesforce

And within the next 45 minutes, you will be able to access your Google Drive files in Salesforce.

References & Useful URLs