'How to get all the workbooks in project in Tableau
I am using TableauServerClient. My code :
all_workbooks,pagination_item=server.workbook.get()
for wb in all_workbooks:
print(wb.name)
It prints all the workbooks in server(From all projects).I need to print only workbooks present in particular Project(i know the Project name and id)
Solution 1:[1]
The workbooks object contains project information according to the docs.
Something like this should work:
all_workbooks,pagination_item=server.workbook.get()
for wb in all_workbooks:
if wb.project_name == "YOUR PROJECT NAME":
print(wb.name)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bernardo |
