Integrate Google Drive with Salesforce Chatter using Lightning Connect

Lightning Connect provides access to the files stored outside of your Salesforce Organization, and enables seamless integration with the Force.com platform.

Salesforce Integration with Google Drive

Lightning Connect provides access to the files stored outside of your Salesforce Organization, and enables seamless integration with the Force.com platform. External data is not stored directly in the Salesforce, but the Lightning components read the data from the external system using the external data source and access the data on demand in real time.

Step 1:

Under Build section, navigate to Customize â†’ Salesforce Files â†’ Settings â†’ Files Connect and Enable the Files Connect option as shown in the below picture.

salesforce google integration

Step 2:

Create the Permission Set with the permission (In the System Permissions section) shown below and assign it to yourself, and also assign to the users who need to access the Google Drive.

Step 3:

Go to https://console.developers.google.com and create a Web application project with Drive APIpermission.

salesforce google integration

And generate the Client ID and Client Secret Key.

Step 4:

Under Administer section, navigate to Security Controls â†’ AuthAuth Providers, and select the Provider Types as Open Id Connect, and enter the details as shown below. Once saved, copy and paste the generated Callback URL to the Redirect URIs in your Google Web Application.

salesforce google integration

Step 5:

Under Build section, navigate to Develop â†’ External Data Sources and Enter the details as showbelow (select the Type and Authentication provider as the provider which we created in the previous step, and check the Start Authentication Flow on Save check box).

salesforce integration with google

Once you click the save button, you will be redirected to the authentication page; now, click the Accept button on that page.

salesforce integration with google

Once you got authenticated by Google, click the Validate and Sync button and select the External data source we created in the previous step and click the Sync button.

Step 6:

Now, a new External object is created under the External Data source. Next, edit that object and select the deployment status as Deployed, and click Save.

Step 7:

Edit the Permission Set which we created in the

Step 2, and enable the External data source permission (In the External Data Source Access section).

Step 8:

Go to the Chatter and in the files section, you can see the new Data Source Section (Google Drive data source).

salesforce integration with google

Click the Click here to check your credentials link for authenticating your Google drive. When you click this link, you will be redirected to the External Data Source page. Now, click the Save button and provide the access details on the authentication page.

Step 9:

Now, you can view all your files in the Google Drive in the chatter files section.

salesforce to google drive integration

Step 10:

You can also share any file from your Google Drive with the Chatter group or a user.

salesforce to google drive integration

Reference LinkSalesforce Files Connect

About MST

At MST Solutions our cornerstone is to adapt, engage and create solutions which guarantee the success of our clients. The talent of our team and experiences in varied business verticals gives us an advantage over other competitors.

Recent Articles

Work with us.

Our people aren’t just employees, they are key to the success of our business. We recognize the strengths of each individual and allow them time and resources to further develop those skills, crafting a culture of leaders who are passionate about where they are going within our organization.