8000 docs: workbook publish hidden views · mattholy/server-client-python@8d1d0d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d1d0d3

Browse files
committed
docs: workbook publish hidden views
1 parent 5bf5aa9 commit 8d1d0d3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/api-ref.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5390,10 +5390,12 @@ tableau_auth = TSC.TableauAuth('username', 'password', site_id='site')
53905390
server = TSC.Server('https://servername')
53915391

53925392
with server.auth.sign_in(tableau_auth):
5393-
# create a workbook item
5394-
wb_item = TSC.WorkbookItem(name='Sample', project_id='1f2f3e4e-5d6d-7c8c-9b0b-1a2a3f4f5e6e')
5395-
# call the publish method with the workbook item
5396-
wb_item = server.workbooks.publish(wb_item, 'SampleWB.twbx', 'Overwrite')
5393+
# create a workbook item
5394+
wb_item = TSC.WorkbookItem(name='Sample', project_id='1f2f3e4e-5d6d-7c8c-9b0b-1a2a3f4f5e6e')
5395+
# set hidden views
5396+
wb_item.hidden_views = ['Sheet1', 'Sheet2']
5397+
# call the publish method with the workbook item
5398+
wb_item = server.workbooks.publish(wb_item, 'SampleWB.twbx', 'Overwrite')
53975399
```
53985400

53995401
<br>

0 commit comments

Comments
 (0)
0