Are you trying to connect Salesforce to Looker? Do you want to interpret your Salesforce data to get better insights? If yes, then you have landed in the right place. This post will unwrap various ways to extract the data from Salesforce and then analyze it in Looker.

Method 1: Connect Salesforce to Looker Using Hevo

Hevo provides an effortless way to connect Salesforce to Looker for free. As it was mentioned earlier, we need to connect Salesforce to BigQuery or any other data warehouse to integrate it with Looker. Hevo is the only real-time ELT No-code Data Pipeline platform that cost-effectively automates data pipelines that are flexible to your needs.

Sign up here for a 14-Day Free Trial!

It just takes a couple of steps for Hevo to move data from Salesforce to Looker:

Step 1: Connect: Connect your Salesforce data source with Hevo just by providing the credentials.

Step 2: Configure BigQuery as Destination: Integrate your data from multiple sources, store it in our fully-managed data integration platform, and make it analytics-ready. 

Learn more about configuring Salesforce here. Also, you can read more on configuring Bigquery here.

Step 3: Analyze: Import this data to Looker, visualize your unified data and derive actionable insights in minutes.

Let’s see some unbeatable features of Hevo:

  • Data Transformation: It provides a simple interface to perfect, modify, and enrich the data you want to transfer.
  • Schema Management: Hevo can automatically detect the schema of the incoming data and maps it to the destination schema.
  • Incremental Data Load: Hevo allows the transfer of data that has been modified in real-time. This ensures efficient utilization of bandwidth on both ends.
Sign up here for a 14-Day Free Trial!

Method 2: Extract Data Using Salesforce Rest API

We can realize the feature richness of Salesforce API from the list of APIs it exposes. Its advantages include ease of integration and development. It is an excellent choice of technology for use with mobile applications and web projects. REST API uses tools like CURL or Postman or HTTP clients to interact with the respective technology stack. For example, you can send HTTP requests to access, create, and manipulate REST resources. 

curl https://instance_name.salesforce.com/services/data/v49.0/
-H "Authorization: Bearer Token"

Rest API uses OAuth 2.0 authorization flow. OAuth 2.0 is an open protocol that authorizes secure data sharing between applications through the exchange of tokens. Further about the authentication of the REST API in Salesforce, one can read the following documentation. After the successful authentication with the REST API, you can interact with the resources of API and start fetching desired data from it to load them into your data warehouse. 

A typical response from the server will be a list of available resources in JSON or XML, depending upon what is being required by you in your request. 

{ "sobjects" : "/services/data/v26.0/sobjects", "licensing" : "/services/data/v26.0/licensing", "connect" : "/services/data/v26.0/connect", "search" : "/services/data/v26.0/search", "query" : "/services/data/v26.0/query", "tooling" : "/services/data/v26.0/tooling", "chatter" : "/services/data/v26.0/chatter", "recent" : "/services/data/v26.0/recent" }

Salesforce Rest API also supports SOQL, and it is used to execute arbitrarily complex queries. The result of the above query can be in XML or JSON. JSON is a preferred method as most of the data warehouses, including BigQuery, support it natively. 

Whether you use SOAP or REST API, the architecture remains the same. The only difference is using different protocols. After you have your client ready, you can connect to Salesforce using the following steps:

  • Decide which resources to extract from the API.
  • Map these resources to the schema of the data warehouse repository that you will use.
  • Transform the data into it.
  • Load the transformed data on the repository based on the instructions below. 

So, as we can see that accessing the API, is not enough for ensuring operations of the data pipeline that will safely deliver your data on a data warehousing solution for analysis.

Extract Data Using the Salesforce Streaming API

There are many other useful APIs in Salesforce, as mentioned above, but discussing streaming API is important. With Streaming API, you can define queries, and if something changes any time in data that register to this query, you will get the notification. 

Important features of Streaming API can be listed as:

  • Applications that have to occur frequently.
  • General Notification.
  • Push Technology.
  • Message Reliability.
  • Bayeux Protocol, CometD, Long Polling. 

More details about these features of streaming API can be found in the following documentation

Method 3: Visualize Salesforce Data in Looker Using Custom Scripts

This method involves 2 steps as listed below:

  1. Load Salesforce in a Data Warehouse
  2. Loading Data from Data Warehouse to Looker

Load Salesforce in a Data Warehouse

To go through this step, one must have:

  • Salesforce Account.
  • Knowledge about API.
  • Data warehouse of your choice.

Following are the steps involved in writing an ETL script to move data from Salesforce:

  • Extract data from Salesforce.
  • Transform and prepare your data.
  • Stage your data.
  • Load your data.

Details about these can be found in the detailed article

Loading Data from Data Warehouse to Looker

The following figures represent the data flow steps in the Looker. There are three main steps as listed below:

  1. Connection of database/data warehouse with Looker.
  2. Data modeling in the dev environment.
  3. Data deployment to production for its visualization.

Let’s discuss the database/data warehouse connection with Looker. All of the most used data warehouses are configurable with Looker. In the case of BigQuery, you need to set up the BigQuery connection in Looker. You can read the details here. Similarly, Amazon Redshift can be connected with Looker by the configuration of the schema setup and setting the search path. For details, you can read here.

One of the most commonly used databases is PostgreSQL. It can be connected with Looker by setting up name, dialect, and port settings. It uses OAuth to set up and finalizes the connection. Please read the details here

Limitations of Connecting Salesforce to Looker using the manual method:

  • Complexity: Using REST API to extract data can be complex as it requires you to be familiar with its architectural principles.
  • Scalability: Manual processes become inefficient and resource-intensive when dealing with large data volumes, impacting performance and scalability.

Use Cases of Salesforce Connect to Looker

  • Business Intelligence:  Looker Salesforce connector enables you to utilize Looker for preparing interactive dashboards and reports that can help you to get better insights for your business. 
  • Performance Analysis: Using Looker data connector for Salesforce, you can monitor the effectiveness of your marketing campaign across different platforms. This allows you to see if you are meeting your marketing efforts.
  • Web developer tools:  To track client outcomes, You can incorporate Looker Studio functions into your devices or use pre-built tools. Thus, it’s imperative that you know the best practices for Looker Salesforce integration for leveraging this benefit. 

Before wrapping up, let’s cover some basics.

What is Salesforce?

Salesforce is one of the most commonly used Customer Relationship Management (CRM) tools. It is a cloud-based software-as-a-service (SaaS) platform. Its nature of being amazingly customizable among tons of integration functionality has made it absolutely user friendly. It also solves many core problems that businesses face related to their customers and sales management. Moreover, live technical support, along with competitive pricing, helps its adaptation easy for small, medium, and large businesses alike.  

What is Looker?

Looker is an enterprise platform for business intelligence, data visualization, and data analytics. Looker is a tool that helps you explore, share, and visualize your company’s data so that you can make better business decisions. Looker offers a unified surface to access the truest and most recent version of your company’s data. With data integrated into users’ daily workflows, organizations can extract value from their data at web scales.

For further information on Looker, you can click here.

Conclusion

In this blog, you have learned how to connect Salesforce to Looker. You have to extract data from Salesforce and then load it to a database or data warehouse. After guiding how to set up Looker Salesforce integration, this article also provides comprehensive information about its use cases.We can use the data in the database or data warehouse and analyze it in Looker. But if you want to minimize the time in loading the data to a database or data warehouse and then analyzing it, you can use Hevo.

Hevo offers a fully automated service of loading the data from 150+ data sources like Salesforce into a Data Warehouse to be visualized in Looker for free. Hevo lets you focus on insights and not on data preparation. You can invest more time in doing research, identifying opportunities, and acquiring new customers. It improves sales, retains customers, and increases profitability.

Visit our Website to Explore Hevo

Want to take Hevo for a spin? Sign Up for the 14-day free trial and experience the feature-rich Hevo suite first hand.

Share your experience of connecting Salesforce to Looker in the comment section below.

Muhammad Faraz
Freelance Technical Content Writer, Hevo Data

In his role as a freelance writer, Muhammad loves to use his analytical mindset and a problem-solving ability to help businesses solve problems by offering extensively researched content.

No-code Data Pipeline for Looker