Skip to content

Commit 7c62304

Browse files
authored
Merge pull request #1433 from jorwoods/jorwoods/wb_hidden_views
docs: workbook publish hidden views
2 parents 5bf5aa9 + 8d1d0d3 commit 7c62304

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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)