Skip to main content

Examine an Integration Use Case

Learning Objectives 

After completing this unit, you’ll be able to:

  • Describe the challenge of keeping sales leads in Salesforce in sync with Tableau.
  • Explain how to use MuleSoft Composer to sync leads in Salesforce with a leads data source in Tableau.
  • Prepare to create a flow.

Before You Start

This module builds on MuleSoft Composer Installation and Configuration, so make sure you've completed it before you continue. Recall from that module, you need to have the MuleSoft Composer User permission set if you want to build and run integration flows.

In this module, we assume you’re an authorized MuleSoft Composer user. If you’re not a MuleSoft Composer user, that’s OK. Read along to learn how they perform the steps. Don’t try to follow the steps in a Trailhead Playground, because MuleSoft Composer isn't available in the Trailhead Playground. 


To learn about MuleSoft Composer’s integration features, flow components, and flow creation tasks, take MuleSoft Composer Basics.

In this unit, you step into the role of admin for Northern Trail Outfitters (NTO), an outdoor and recreational gear retailer. First, you examine an integration challenge faced by NTO, and then you learn about a MuleSoft Composer integration solution. Finally, you learn how to prepare to create your flow.

Integration Challenge

Let’s take a look at an integration challenge NTO is facing. Your sales team at NTO manages and maintains sales leads in the NTO org’s Sales Cloud. They also manage and maintain interactive visualizations that are based on a leads data source in Tableau. 

Currently, the sales team is performing these tasks manually. Every week, they export leads from Sales Cloud to a .csv file, create a Tableau .hyper extract from the .csv file, and publish the extract as a data source to a Tableau Cloud project. Also, there’s a significant lag time between when the leads are entered into Sales Cloud and when those same leads show up in Tableau. This process is time-consuming and highly error-prone, so the team wants to automate it.

Integration Solution

As a solution, you need to automate the data sync between the NTO org’s Sales Cloud and Tableau in order to achieve near real-time integration. To do this, you use MuleSoft Composer to create an integration flow that automatically updates an existing leads data source in Tableau with new leads in Sales Cloud. Specifically, the flow must perform the following tasks.

  1. Find any new lead created in the NTO org’s Sales Cloud.
  2. Add the lead to the existing leads data source in Tableau Cloud.

To implement the solution using MuleSoft Composer, you need to perform these flow creation tasks.

  • Prepare to create a flow.
  • Design and test a flow.
  • Activate a flow.
  • Monitor and troubleshoot a flow.

You learn how to perform these tasks in the rest of this module.

Prepare to Create a Flow

Ready to get started?

First, you need to gather all required information about the systems and assets your flow is going to use. The following table describes the systems the flow needs to connect to and the information you need to have for those systems.

As a best practice, ensure the NTO org has a sandbox org you can connect to when you design and test your flows. 

Required Information

NTO’s Sales Cloud

  • URLs of the NTO sandbox and production orgs
  • Username and password with appropriate permissions to the NTO orgs


  • Name of your Tableau Cloud instance
  • Email address and password to Tableau Cloud
  • User with the Explorer (Can Publish) site role
  • Location of the leads data source

Next, you learn about the prerequisites for your Tableau environment.

Prerequisites for Your Tableau Environment

Before you can use MuleSoft Composer to create a connection to Tableau, ensure your Tableau environment meets the following prerequisites.

  • A leads data source in .hyper format must exist in Tableau.
  • Your Tableau user must have at least the Explorer (Can Publish) site role.

Now let’s find out values for a Tableau connection.

Tableau Connection Parameters

When you create a connection to Tableau using MuleSoft Composer, you must specify values for the following parameters. 

Connection Display Name

The connection display name is any name of your choice.

Server URL and Site

To find out the server URL and site for a Tableau connection, follow these steps.

  1. Log in to Tableau Cloud using your email address and password.
  2. Navigate to the leads data source.
  3. Look at the URL and identify the server URL and site. For example, if the URL of your leads data source is, use these parameter values:

Personal Access Token and Token Secret

Your Tableau connection requires a personal access token and token secret. A personal access token is long-lived and removes the need to use hard-coded credentials or interactive login. Using a personal access token reduces the risk that your Tableau credentials are compromised while automation tasks are being performed. If your personal access token is ever compromised, you can just revoke the token. Note that you must create your own personal access tokens; Tableau admins cannot create personal access tokens for you.

In general, personal access tokens expire if they are not used after 15 consecutive days. If they are used more frequently than every 15 days, the tokens expire after one year. After one year, you must create a new token. For more information on personal access tokens, refer to Tableau Personal Access Tokens.

To create a personal access token and token secret, follow these steps.

  1. In your Tableau Cloud, click your profile icon and then select My Account Settings.
  2. In the Settings tab, scroll down to the Personal Access Tokens field, enter a name of your choice, and then click Create new token.
    Settings tab with Create new token button.
  3. Click Copy to clipboard and paste your personal access token secret into a text file of your choice.
    Personal access token box with Copy to clipboard button.
  4. Copy and paste the personal access token name into the same text file. Use your personal access token name and token secret when you configure a Tableau connection using MuleSoft Composer.

You’ve taken the first steps to prepare to create your flow with MuleSoft Composer. In the next unit, you learn how to design and test your flow.


Keep learning for
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities