Skip to the main content.
Contact Us
Contact Us

What are Webhooks?

Webhooks are one way that apps can send automated messages or information to other apps.

For Tableau Server/Online, this means that events in Tableau can send automated messages and kick off actions in other apps.

What can you do with them?

Here are some cool examples of things you can do with Tableau’s Webhooks:

  • Celebrate team accomplishments by sending a Slack message to your team’s channel when a new workbook is published.
  • Integrate processes by adding a task to your team's task/project management system (Jira, Asana, Monday, etc) when a datasource refresh fails.
  • Notify your followers on Twitter whenever your workbook refreshes successfully. Because who wouldn’t want to do this?

There are tons of possibilities. Most of the time, if you can think it, you can build it!

What events in Tableau Server/Online can be used with webhooks?

Here are the events in Tableau Server/Online that can trigger webhook posts.

This list is current as of September 30th, 2020

  • Data Source
    • Updated
    • Created
    • Deleted
  • Data Source Refresh
    • Refresh Started
    • Refresh Succeeded
    • Refresh Failed
  • Workbooks
    • Updated
    • Created
    • Deleted
  • Workbook Refresh
    • Refresh Started
    • Refresh Succeeded
    • Refresh Failed

What do you need in order to use these?

How do you set them up?

Step 1: Create a Personal Access Token in Tableau Server/Online

Log in to your Tableau Site and navigate to your user page. Under settings, scroll down to Personal Access Tokens. Enter a name for your token and select the Create New Token button.

You will need to copy the name and following token to a safe place for use later in the process.

Create New Token Screenshot

Step 2: Authenticate in Postman

Open Postman.

Open the Sign In (personal access token) json file. Paste in your site name. For my Tableau Online site, it is my assigned site name that is at the end of my Online URL.

https://10ax.online.tableau.com/#/site/CopyThisPartHere

After sending the request, save the resulting token as an environment variable for use later.

Gif showing how to save token for later

Step 3: Set Up Your Third Party Service

Go into your third-part service of choice (ex.  IFTTT, Automate.io, or Zapier). For this post, I will be using Automate.io.

Create your trigger.

Create a new bot with a Webhook as the trigger. When you click Setup Webhook, you will be shown a url. Copy this url to your clipboard. You will use this in our next step when you setup the webhook in Postman.

Create your action.

Then choose the action that you want to kick off when your bot is triggered. You can choose almost anything!

  • Send a slack message
  • Send an email
  • Add a task to your task manager
  • Turn on you Hue Lights. (Just because you could do this does not mean that you should…🤷‍♂️)

automate.io screenshot showing setup webhook

Step 4: Set Up the Webhook Using Postman

Open the Create a webhook json file. You will see the following request under the Body header. There are three things you need to change to finalize the request.

  • Add the name of the event that you want to use to trigger the webhook. Use the phrase from the webhook-source name listed in this table.
  • Add the webhook url from your third-party service that you set up as part of Step 3. This tells Tableau where to send a packet of data when the event occurs.
  • Create a name for your webhook. This is to help you identify webhooks when you review them later on.

Screenshot showing event types, add webhook url, and name your webhook in server

Here is an example of what a completed request looks like.

Screenshot of completed request

That is all there is to it!

You can use the List webhooks json file to see which webhooks are set up on your site and what url they are sending packets of data to when their specific events are triggered.

More Resources

If you want to learn more about Tableau’s webhooks, check out these resources.

Tableau’s Official Webhook Documentation

Webhooks Post by Andre De Vries

Webhooks Post By Anya Presvetova

 


Explore More

The Future of Tableau | Product Roadmap & Conference 2023 Recap

The Future of Tableau | Product Roadmap & Conference 2023 Recap

The Tableau Conference 2023 has come to a close, leaving data enthusiasts buzzing with excitement, curiosity, and perhaps a bit of apprehension about...

Read More
Introduction to DataOps | Business Leader's Guide to Automation

Introduction to DataOps | Business Leader's Guide to Automation

Welcome to the world of DataOps, a game-changing approach that empowers organizations to accelerate their data-driven initiatives, enhance...

Read More
Automated Marketing Calendars | Save Time & WOW Clients with Data Integration

Automated Marketing Calendars | Save Time & WOW Clients with Data Integration

Within media and marketing organizations, keeping an accurate and up-to-date marketing calendar is crucial for marketing teams to stay organized and...

Read More