Connect And Schedule Reports with Google Sheet

Definition 

By using Data Connector for salesforce, we can easily obtain records of Salesforce reports to Google sheet. We can additionally insert, delete, update, and refresh the Salesforce data from the google sheet itself. We can also import Salesforce data based on a custom SOQL Query. 

Prerequisites 

  • Salesforce org (Developer edition, Sandbox) 
  • Google spreadsheet with connected google account. 

Data Connector for Salesforce 

It is the google add-on developed by Google cloud. Add-ons are scripts that are executed on Google Sheets, Docs, Slides. At any time, we can turn it on or off. Users can also edit the data on the worksheets to push the changes into Salesforce. 

Installation of Data Connector for Salesforce 

  1. Sign into your Gmail and click on the app launcher. Select Sheets. 
  1. Click the Blank sheet. 
  1. Click Extension — > Add-ons — > Get Add-ons 
  1. In the search bar, search for Salesforce Connector. Choose the highlighted tile. 
  1. Click Install — >Continue 
  1. Choose the connected Google account. Click allow to grant permission. 
  1. Now, Salesforce Connector has been installed. Click Done 
  1. Once installed, you can see this Salesforce connector under the Extension tab. Navigate to that tab. 
  1. Click Authorize 
  1. Login with your Salesforce org credentials — > Click Allow Access 
  1.  Data connector for Salesforce is successfully Connected. Close this page. 

Fetching Reports from Salesforce to Google Spread Sheet 

  1. Click on Reports and search for specified report name and click Get Data 
  1. After clicking Get Data, you can get the data from the Salesforce report to the spread sheet. 
  1. Click Refresh from Menu bar. 

There are two ways you can update Google Sheet with Salesforce data: 

  • Manual Refresh 
  • Auto Refresh 

      Manual Refresh:  

              This allows you to instantly update data in a single click. 

      Auto Refresh:  

This allows you to set a timeline to update the data after certain times. You can opt for a frequency of 4, 8 or 24 hours. 

  1. Click Auto Refresh. Choose the sheet name and enter the refresh interval hours and click create. 

Other Data connector Operations 

  • Reports 
  • Import 
  • Update 
  • Delete 
  • Refresh 

Example: To import records, we can import the data from salesforce using custom SOQL query. Click — > Import — >Select Object — > Select field — > Click Get Data  

Once the “Get Data” button is clicked, you can view the records in the Google sheets returned from Salesforce. 

Protect the Google sheet from other users 

For security purposes, we can restrict the google sheet in the ‘View only’ mode for others. 

  1. In google Sheet, Click Data –> Protected sheets and ranges
  1. Click Add a sheet or range.  
  1. Click Range tab and choose your google sheet name.  
  1. Click Set Permission
  1. Choose Only you in in Restrict and click Done. Now, the allowed user only can edit the sheet, while others can only view the sheet. 

References: 

https://workspace.google.com/marketplace/app/salesforce_connector/857627895310

https://help.salesforce.com/s/articleView?id=sf.rd_reports_export_connect.htm&type=5

https://help.salesforce.com/s/articleView?id=sf.rd_reports_overview.htm&type=5

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.