tableau / rest-api-samples

Samples for the Tableau REST API
MIT License
378 stars 268 forks source link

.twb that uses live connections #72

Open rickymedrano opened 1 year ago

rickymedrano commented 1 year ago

In the python publishing workbook script, it says:

Note: The REST API publish process cannot automatically include extracts or other resources that the workbook uses. Therefore, a .twb file with data from a local computer cannot be published. For simplicity, this sample will only accept a .twbx file to publish.

What happens if the .twb uses only live connections and there is no associated local data source? Shouldnt the code factor this in and give the ability to upload these type of .twb workbooks to Tableau Server?

jacalata commented 1 year ago

Yes. Remember that these samples are intended just as the beginnings of code that you will edit on your own machine. If you remove the three lines at line 249 in the publish sample, you can try uploading a twb file. Remember that to publish successfully, the server needs to be able to access the embedded data connections.