You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Populates the PowerPoint content of the specified workbook.
6628
+
6629
+
This method retrieves the workbook as a PowerPoint (.pptx) file. After calling this method, the PowerPoint content is available through the workbook's `powerpoint` property.
Creates extracts for the embedded data sources of the specified workbook.
6672
+
6673
+
**Parameters**
6674
+
6675
+
Name | Description
6676
+
:--- | :---
6677
+
`workbook_item` | The `WorkbookItem` to create extracts for.
6678
+
`encrypt` | (Optional) Specifies whether to encrypt the extracts. The default is `False`.
6679
+
`includeAll` | (Optional) Specifies whether to create extracts for all embedded data sources. The default is `True`. Set to `False` to specify individual data sources via the `datasources` parameter.
6680
+
`datasources` | (Optional) A list of `DatasourceItem` objects representing the embedded data sources to create extracts for. Only used when `includeAll=False`.
6681
+
6682
+
**Returns**
6683
+
6684
+
Returns a `JobItem` for the extract creation job.
6685
+
6686
+
**Version**
6687
+
6688
+
Version 3.5 and later. See [REST API versions](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_versions.htm).
Removes the extracts from the embedded data sources of the specified workbook.
6708
+
6709
+
**Parameters**
6710
+
6711
+
Name | Description
6712
+
:--- | :---
6713
+
`workbook_item` | The `WorkbookItem` to remove extracts from.
6714
+
`includeAll` | (Optional) Specifies whether to remove extracts for all embedded data sources. The default is `True`. Set to `False` to specify individual data sources via the `datasources` parameter.
6715
+
`datasources` | (Optional) A list of `DatasourceItem` objects representing the embedded data sources to remove extracts from. Only used when `includeAll=False`.
6716
+
6717
+
**Returns**
6718
+
6719
+
Returns a `JobItem` for the extract deletion job.
6720
+
6721
+
**Version**
6722
+
6723
+
Version 3.3 and later. See [REST API versions](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_versions.htm).
Downloads a specific revision of the specified workbook.
6853
+
6854
+
**Parameters**
6855
+
6856
+
Name | Description
6857
+
:--- | :---
6858
+
`workbook_id` | The identifier (`id`) for the `WorkbookItem`.
6859
+
`revision_number` | The revision number to download. Pass `None` to download the current (latest) revision.
6860
+
`filepath` | (Optional) Downloads the file to the location you specify. If no location is specified (the default is `filepath=None`), the file is downloaded to the current working directory.
6861
+
`include_extract` | (Optional) Specifies whether to download the file with the extract. The default is `True`.
6862
+
6863
+
**Exceptions**
6864
+
6865
+
Error | Description
6866
+
:--- | :---
6867
+
`Workbook ID undefined` | Raises an exception if a valid `workbook_id` is not provided.
6868
+
6869
+
**Returns**
6870
+
6871
+
The file path to the downloaded workbook revision.
6872
+
6873
+
**Version**
6874
+
6875
+
Version 2.3 and later. See [REST API versions](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_versions.htm).
6876
+
6877
+
**Example**
6878
+
6879
+
```py
6880
+
file_path = server.workbooks.download_revision(
6881
+
'1a2a3b4b-5c6c-7d8d-9e0e-1f2f3a4a5b6b',
6882
+
revision_number='2'
6883
+
)
6884
+
print("\nDownloaded revision to {0}.".format(file_path))
0 commit comments