How to Connect & Load Data From Salesforce to Snowflake
Unlock the power of your customer data with Salesforce to Snowflake integration. Overcome CRM challenges, streamline data, and drive growth. Learn how in our guide.

Effective customer relationship management (CRM) stands as the core for building and nurturing valuable connections with customers. However, traditional CRM systems often face challenges in effectively managing the vast amount of customer data. These challenges include data silos, complex data integration processes, and limited analytical capabilities, which hinder organizations from extracting valuable insights to drive business growth.

Fortunately, there's a solution for this. By combining Salesforce's robust CRM functionalities with Snowflake's advanced data warehousing capabilities, you can break down data barriers, streamline data integration, and unlock the full potential of your customer data. In this guide, we'll provide you with a roadmap and best practices to connect Salesforce to Snowflake. So, let's dive in!

Salesforce Overview

Blog Post Image

Image Source

Salesforce is a leading cloud-based customer relationship management (CRM) platform that empowers you to manage and optimize your sales, marketing, and customer service processes. It offers various services such as lead generation, analytics, marketing intelligence, field service management, and personalized customer experiences. 

Here are some of the key features of Salesforce:

Reporting and Analytics: With Salesforce's built-in reporting and analytics capabilities, you can gain valuable insights into your sales, marketing, and customer service data. Create custom reports, dashboards, and visualizations to track key metrics, identify trends, and make data-driven decisions.

Automation and Workflow Management: Salesforce offers automation features like workflow rules and process builder. You can streamline repetitive tasks, automate processes, and ensure consistent follow-ups, saving time and improving efficiency across your organization.

AppExchange Marketplace: Salesforce's AppExchange is a vast marketplace that offers a wide range of pre-built applications and integrations. You can explore and install apps tailored to your specific needs, further enhancing the capabilities of your Salesforce implementation and extending its functionality.

Data Security and Privacy: Salesforce prioritizes the security of your data by following industry-standard practices and compliance regulations. It offers Salesforce Shield, which includes data encryption, event monitoring, and audit trails. These features work together to safeguard the confidentiality and integrity of sensitive information, ensuring that your data remains protected.

Snowflake Overview

Blog Post Image

Image Source

Snowflake is a fully-managed and enterprise-ready Software-as-a-Service (SaaS) platform. It is a highly scalable data warehousing solution, providing a centralized repository for storing structured, unstructured, and semi-structured data. With Snowflake, you can seamlessly handle diverse data types and easily scale your storage and computing resources as needed. This ensures you have a robust and flexible data warehousing platform to efficiently manage and analyze data, enabling you to unlock valuable insights and make data-driven decisions.

Here are the key features of Snowflake:

Elastic Scalability: Snowflake offers exceptional elasticity, allowing you to scale your data warehousing resources up or down based on your needs. It automatically handles infrastructure provisioning, ensuring optimal performance regardless of data size or complexity.

Multi-Cloud Flexibility: Snowflake operates across multiple cloud providers, including Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). This flexibility allows you to choose the cloud provider that best suits your requirements, ensuring seamless integration with your existing infrastructure.

Supports Semi-Structured Data: Snowflake offers native support for semi-structured data, such as JSON, XML, Avro, and Parquet. It allows you to ingest, store, and query your semi-structured data without the need for complex transformations. Additionally, Snowflake's schema-on-read approach enables direct querying and analysis of semi-structured data using SQL.

Separation of Storage and Compute: Snowflake's unique architecture allows you to independently scale computing and storage resources. With auto-sensing, compute resources can scale automatically during queries without disruption or data redistribution. Storage resources can be scaled to any desired capacity without adding unnecessary compute costs. Both resource groups can be customized, scaled up or down, and even suspended as needed. This flexibility ensures optimal performance, cost efficiency, and adaptability for your specific requirements.

Why Connect Salesforce to Snowflake?

Blog Post Image

Image Source

Connecting Salesforce to Snowflake brings numerous advantages and unlocks powerful data management and analysis capabilities. Here are a few key reasons why connecting Salesforce to Snowflake is beneficial:

  • Comprehensive Data Warehousing: Connecting Salesforce to Snowflake facilitates data integration with other systems and sources. You can combine Salesforce data with data from marketing tools, ERP systems, or external data sources, creating a unified view for comprehensive analysis and insights. Snowflake's ability to handle diverse data formats, such as JSON, Avro, or Parquet further enables advanced analytics across multiple data sources.
  • Advanced Analytics: Snowflake offers advanced analytics capabilities, allowing you to perform complex queries, aggregations, and transformations on Salesforce data. With Snowflake's SQL-based querying language, you can gain deeper insights, generate custom reports, and perform data analysis at scale. Snowflake's powerful processing capabilities and parallel execution enable fast and efficient analytics, even with large datasets.
  • Real-Time Data Availability: Integrating Salesforce with Snowflake enables real-time or near-real-time data synchronization. This ensures that your analytics and reporting are always up to date and reflect the latest information.

4 Easy Methods to Replicate Salesforce Data to Snowflake

There are several methods available for replicating data from Salesforce to Snowflake. In this guide, we'll explore popular ways to link Salesforce data to Snowflake.

  • Method 1: Using Tableau CRM Sync Out Feature
  • Method 2: Using Bulk API
  • Method 3: Using Data Loader
  • Method 4: Using SaaS Alternatives like Estuary

Method 1: Using Tableau CRM Sync Out Feature

Blog Post Image

Image Source

With Salesforce's acquisition of Tableau in 2019, you can conveniently connect and transfer your Salesforce data to Snowflake using Tableau Data Manager. In this method, we will establish a remote connection using the Snowflake output connector to transfer data from CRM Analytics to a Snowflake table. Then, we will use the Sync Out feature to push the raw data from CRM Analytics directly to Snowflake.

To connect Salesforce to Snowflake, follow these steps:

Step 1: Create Snowflake Objects

To use the Sync Out feature with Snowflake, you need to set up the following Snowflake objects in your Snowflake account:

  • Database and Schema: You'll need to create a database and schema for storing Salesforce data. 
  • Warehouse: A warehouse in Snowflake is a computational resource that allows you to load and process data. For Sync Out, it is recommended to use an XSMALL or SMALL warehouse size, which provides sufficient resources for the task.
  • Role: A role in Snowflake defines a set of permissions and privileges for users. You need to create a role with the necessary permissions on the warehouse and privileges on the database and schema.
  • User: Finally, you need to create a user and grant them the above-mentioned role. This user will be associated with the role and have the privileges and permissions necessary to perform data synchronization activities with Snowflake.

Here's a simplified script to create the Snowflake objects:


This script will create a role, a user associated with that role, a warehouse, a database, and a schema. It grants appropriate permissions to the role and user for accessing and manipulating the Snowflake objects.

Step 2: Enable Sync Out in Salesforce

Firstly, you have to enable Sync Out connection in Salesforce. Go to Setup > Analytics > Settings and check the Enable Data Sync and Connections and Enable Snowflake output connection checkbox.

Blog Post Image

Image Source

Step 3: Set up the Output Connection

In Tableau CRM Data Manager, go to Connect > Connect to Data > Output Connections. Click on Add Connection and select the Snowflake Output Connector and enter the Snowflake credentials.

Blog Post Image

Image Source

Step 4: Enable Sync Out for SFDC_LOCAL objects

Now you have to inform Tableau CRM that you want to push data to Snowflake. Open Tableau CRM Data Manager, go to Connect, and click the down arrow on the right in the SFDC_LOCAL bar. Click on Sync Out and enable it by providing appropriate details. If you can't see the option, contact Salesforce Support for assistance.

Blog Post Image

Image Source

Step 5: Send Data to Snowflake

In the SFDC_LOCAL bar, click on the down arrow and choose Run Now to send all data to Snowflake. For syncing a specific object, click the down arrow on that object and choose Run Now. Your data from Tableau CRM will be sent to Snowflake.

Blog Post Image

Image Source

Step 6: Verify Data Transfer

You can navigate back to your Snowflake account, where you will now find your Salesforce data readily available. With the successful integration of Salesforce and Snowflake, you can proceed to perform advanced analytics on your data.

Blog Post Image

Image Source

Limitations of using Tableau CRM Sync Out feature

The native integration may have limitations when it comes to complex data transformations or data cleansing requirements. In some cases, additional data processing or data preparation steps may be required before transferring data to Snowflake.

Another notable challenge is how formula fields are handled. These fields might not be read correctly by Tableau’s API, adding complexity when dealing with intricate Salesforce formula fields that span multiple objects. Local data source structures can also cause problems, often resulting in errors due to table limitations.

Method 2: Using Bulk API

Salesforce provides different general-purpose APIs that you can use to access Salesforce data. The general-purpose APIs include:

  • Bulk API
  • Streaming API

You can use the Salesforce Bulk API to access and load data from Salesforce to Snowflake. The Bulk API supports CSV, JSON, and XML file formats. Here are the steps to follow for this method:

Step 1: Extracting the Data from Salesforce

  • Log in to Salesforce API.
  • Create a job to download Account object data from Salesforce in JSON format.
  • Add a batch containing a SQL query to the job you created. This is to get the Salesforce data.
  • Check the batch status to see if it’s Completed or Failed.
  • When the batch status updates to Completed, download the result dataset, which will be in JSON format.
  • After retrieving the results, close the job.

Step 2: Loading the Data to Snowflake

  • Create a Snowflake stage, which is the location where data files are stored and can be accessed by Snowflake.
  • Next, create the file format in Snowflake. Use the File Format menu to create a file format to read a JSON file.
  • Use the Stage and File Format to bulk load the Salesforce JSON file and load the data into Snowflake.

This will successfully load your Salesforce data into a Snowflake table. For a more detailed guide on how to use Salesforce Bulk API to connect Salesforce to Snowflake, you can read this article.

Method 3: Using Data Loader

Data Loader is a third-party, web-based application that allows you to easily manage the import/export of data between Salesforce and other systems. You can use it to insert, update, delete, or export Salesforce records. Data Loader supports operations with large files with up to five million records per sync.

To implement Data Loader, you can follow these steps:

  • Install Data Loader on your Windows or MacOS: Execute the installer file. Then, select and download Data Loader and its installer.command file.
  • Configuration: Configure Data Loader. Refer to the detailed documentation for more information.
  • Execute the Data Loader: Use batch mode or Data Loaded CLI to execute it.

Method 4: Using SaaS Tools Like Estuary Flow

Using SaaS alternatives like Estuary Flow can provide a more efficient and streamlined approach to replicating data from Salesforce to Snowflake in real time. Flow is a DataOps platform that offers a cloud-native solution for seamless integration and data synchronization between different applications and storage systems.

Flow enables real-time data replication, keeping your Snowflake database synchronized with the latest Salesforce data. This is crucial for real-time analytics and operational insights, allowing you to make informed decisions on the fly. 

Flow can scale resources dynamically with its cloud-based infrastructure to handle growing data volumes. Whether you have a small or massive dataset, it can adapt to your needs, ensuring efficient replication without compromising performance. In addition to Snowflake, Estuary Flow can write to other destinations such as MongoDB, BigQuery, SnowflakePostgres, and more.

Now, let's look at the step-by-step process to gain a better understanding of how it all works.

Step 1: Capture the Data from Your Source

  • Sign in to your Estuary account or sign up for free. Once logged in, click on Sources.
  • In the Sources window, click on + NEW CAPTURE.
  • On the Create Capture page, search for Salesforce. You will find two connectors:

Salesforce: This connector captures data from Salesforce objects into Flow collections. It uses batch processing and is ideal for syncing your historical Salesforce data.

Salesforce Real-Time: This connector captures data from Salesforce objects into Flow collections in real time via the Salesforce PushTopic API.

  • In this case, we are using the Salesforce connector, you can choose the one that best fits your needs. Then, click on Capture.
Blog Post Image

Image Source

  • Give the capture a name and fill in the details of your source database, including the Start DateSearch criteria, and Search value
Blog Post Image

Image Source

  • Once all the details are filled in, click on NEXT. Estuary Flow will establish a connection with your Salesforce account and identify the data tables.
  • Click SAVE AND PUBLISH to save the capture configuration.

Step 2: Set Up Your Data Destination

  • After a successful capture, you can either click on Materialize Collections in the pop-up or go to the Estuary dashboard and click on Destinations on the left-side pane.
  • Click New Materialization to set up the data destination. On the Create Materialization page, search for Snowflake and click on Materialize.
Blog Post Image

Image Source

  • Snowflake has some prerequisites you’ll need to meet before you can connect to Flow successfully. So before you continue, follow the steps here
  • Provide the Materialization name and Endpoint config details such as Host URL, User, Password, Database, Schema, Warehouse and Role. Click on Next
Blog Post Image

Image Source

  • The data collections you captured from Salesforce may already be populated. If not, use the Source Collections tool to locate and add them.
  • Finally, click on Save and Publish. After completing these steps, Estuary Flow will continuously replicate your data from Salesforce to Snowflake in real time.
  • For more help, see the Estuary documentation for:

How to create a Data Flow?

Salesforce Historical Data Source Connector

Salesforce Real-TIme Data Source Connector

Snowflake Materialization Connector


Moving Salesforce data to Snowflake offers significant benefits for organizations, including centralized data management, scalability, and advanced analytics. Salesforce provides comprehensive CRM solutions, while Snowflake offers powerful data warehousing capabilities. By combining the strengths of these two platforms, you can unlock valuable insights and gain a competitive edge.

In this guide, we covered four methods to connect Salesforce to Snowflake: Using the Sync out feature, using Bulk API, using Data Loader, and using Estuary Flow. Among these methods, robust, no-code SaaS tools can ensure a seamless, secure, real-time integration with minimal manual effort. Additionally, Flow provides a user-friendly interface, automated schema management, and a secure cloud-based environment.

Along with the Salesforce to Snowflake connector, Estuary Flow provides over 100 pre-built connectors. Start using Flow today to leverage its extensive features!