My Code :
tableau_auth = TSC.TableauAuth(user, password)
server = TSC.Server(r'http://yourserver.com')
server.use_server_version()
with server.auth.sign_in(tableau_auth):
#csv file create with view_item.csv
all_workbooks, pagination_item = server.workbooks.get()
wfound = [workbook for workbook in all_workbooks if workbook.name == 'MyWorkbook']
wconnect = server.workbooks.get_by_id(wfound[0].id)
server.workbooks.populate_views(wconnect)
vfound = [view for view in wconnect.views if len(view.name) > 0]
view_item = vfound[0]
server.views.populate_csv(view_item)
with open('view_csv.csv','wb') as f:
f.write(b''.join(view_item.csv))
Is that possible to send filters with these codes.?How to extract the all the worksheets as seperate csv file?Request you to share your knowledge on this @Chris McClellan
This will help you:
https://help.tableau.com/current/server/en-us/tabcmd_cmd.htm#id7cb8d032-a4ff-43da-9990-15bdfe64bcd0
It shows how to send filters and how to export different sheets, just reference them individually.
I do get worried when questions are asked like this, it feels like you're turning Tableau into an ETL tool.