Movatterモバイル変換


[0]ホーム

URL:


Populate Connections and Views

Edit this page   Submit an issue

When you get a workbook with the TSC library, the response from Tableau Server does not include information about theviews or connections that make up the workbook. Similarly, when you get a data source, the response does not includeinformation about the connections that make up the data source. This is a result of the design of the Tableau ServerREST API, which optimizes the size of responses by only returning what you ask for explicitly.

As a result, if you want to get views and connections, you need to call thepopulate_views andpopulate_connectionsfunctions.

Populate views for workbooks

workbook=server.workbooks.get_by_id('a1b2c3d4')print(workbook.id)server.workbooks.populate_views(workbook)print([view.nameforviewinworkbook.views])

Populate connections for workbooks

workbook=server.workbooks.get_by_id('a1b2c3d4')print(workbook.id)server.workbooks.populate_connections(workbook)print([connection.datasource_nameforconnectioninworkbook.connections])

Populate connections for data sources

datasource=server.datasources.get_by_id('a1b2c3d4')print(datasource.name)server.datasources.populate_connections(datasource)print([connection.datasource_nameforconnectionindatasource.connections])

[8]ページ先頭

©2009-2025 Movatter.jp