GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change Tableau Published Data Source · Issue #251 · tableau/document-api-python

Change Tableau Published Data Source #251

New issue
Copy link
New issue
Copy link
Open
Open
Change Tableau Published Data Source#251
Copy link

Description

@difemaro
difemaro
opened on Nov 15, 2023
Issue body actions

Hi Devs!

While working with Governance, it is common that the staging workbook is connected a Tableau published data source, let's call it PUBLISHED DATA SOURCE A. Is it possible, that using document api, we can change the published data source of the workbook to PUBLISHED DATA SOURCE B?

Don't forget we are talking about published data sources. I am not asking to change the databases or anything related to the published data sources. I just want to change the Tableau published data source the workbook is using (in this case from PUBLISHED DATA SOURCE A to PUBLISHED DATA SOURCE B)

Regards,

Diego Martinez
Tableau Visionary and Forums Ambassador

Activity

  1. bryceglarsen commented on Dec 23, 2023

    @bryceglarsen
    bryceglarsen
    on Dec 23, 2023
    More actions

    Hi @difemaro,
    Fancy meeting you here! Yes, this is possible. While it's a published datasource it is still treated as a common connection and you simply need to update the dbname. Here's how we do it in my org:

    1. Find Datasource B using its name and project with TSC
    2. Return the datasource object and update the connection information from Datasource A to that of Datasource B within the Document API.
    3. Save and enjoy :)
  2. vahidkowsari commented on Jan 25, 2024

    @vahidkowsari
    vahidkowsari
    on Jan 25, 2024
    More actions

    Hi @difemaro and @bryceglarsen and thank you both.

    I need to do the same thing and have the whole skeleton for a command line program to do this, however this library does not offer a way to update the connection information for a workbook, it just returns the datasources. Am I missing something?

    For us we keep the following structure
    Dev

    • Dashboard 1 project
      • Dashboard 1 data source
      • Dashboard 1 workbook

    QA

    • Dashboard 1 project
      • Dashboard 1 data source
      • Dashboard 1 workbook

    When we promote the code we copy the data source and workbooks from Dev to QA and higher envs. I do update the data sources dbnames to point to the correct env db name, however I havent been able to programatically update the workbook's data source in QA after copying the daashboard 1 data source from Dev.

    Basically what we do during deployment of a new version.

    1. Download data source for a project
    2. Download the workbook for a project
    3. Change the DB name of the data source from step 1 to the higher env dbname
    4. Publish the updated data source to the higher env
    5. Change the workbook to point the new updated data source in step 4 (this is the step I dont know how to do)
    6. Publish the updated workbook to the higher env

    Any help is appreciated.

    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.