DEV

Tableau

Tableau Connection

Put Tableau to Work with @Human Automations and @Human Agents

The Tableau Connection documents all Triggers, Actions and Query Operations available for creating automations via the Tableau API.

What can you do with the Tableau Connection?

  • Connect to the Tableau API in a few clicks

  • Use the related Tableau Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Workbook Created

Triggers on: workbooks/workbook_created

Triggered when a new workbook is created in Tableau.

Workbook Updated

Triggers on: workbooks/workbook_updated

Triggered when an existing workbook is updated in Tableau.

Workbook Deleted

Triggers on: workbooks/workbook_deleted

Triggered when a workbook is deleted in Tableau.

Datasource Created

Triggers on: datasources/datasource_created

Triggered when a new datasource is created in Tableau.

Datasource Updated

Triggers on: datasources/datasource_updated

Triggered when an existing datasource is updated in Tableau.

Datasource Deleted

Triggers on: datasources/datasource_deleted

Triggered when a datasource is deleted in Tableau.

Project Created

Triggers on: projects/project_created

Triggered when a new project is created in Tableau.

Project Updated

Triggers on: projects/project_updated

Triggered when an existing project is updated in Tableau.

Project Deleted

Triggers on: projects/project_deleted

Triggered when a project is deleted in Tableau.

Action Operations

Action: Download View

Action: Create Workbook Refresh

Query Operations

Example link

Obtaining Access Credentials

To obtain a Personal Access Token (PAT) for Tableau (system-to-system access), follow these steps:

Prerequisites

  • A Tableau Cloud or Tableau Server account with Site Administrator privileges.

  • Ensure Personal Access Tokens are enabled for your site (Tableau Cloud) or server (Tableau Server).

Steps to Generate a PAT

  1. Log in to your Tableau Cloud or Tableau Server account.

  2. Navigate to:

    • Tableau Cloud: https://<your-site>.tableau.com

    • Tableau Server: https://<your-server>/#/site/<site-name>/explore

  3. Click your profile icon (top-right) → SettingsPersonal Access Tokens.

  4. Click Create a Personal Access Token.

  5. Enter:

    • Token Name (descriptive, e.g., "API-Automation-Token").

    • Expiration Date (optional, but recommended for security).

  6. Click Create.

  7. Copy the generated token (it will only be shown once).

Configuring Webhooks

  1. Generate a Personal Access Token (PAT): Sign in to your Tableau account and create a PAT with Site Administrator privileges from your User Settings.

  2. Identify the Trigger Event: Determine the event that will trigger the webhook (e.g., WorkbookCreated or DatasourceRefreshFailed) from the Tableau REST API documentation.

  3. Set Up the Destination URL: Prepare a secure HTTPS endpoint to receive and process the HTTP POST payloads.

  4. Authenticate with the REST API: Send a POST request to the /auth/signin endpoint using your PAT to obtain an X-Tableau-Auth session token and your Site ID.

  5. Register the Webhook: Send a POST request to the /sites/<site-id>/webhooks endpoint, providing the session token in the X-Tableau-Auth header.

  6. Define the Webhook Payload: Include the webhook name, the selected trigger event, and the destination URL in the JSON request body.

  7. Verify the Configuration: Submit a POST request to the /sites/<site-id>/webhooks/<webhook-id>/test endpoint to confirm the destination URL is correctly receiving payloads.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated