![]() ![]() The XML parsing module is used for POSTing data to Tableau (JSON could be used, but the environment I'm working with here prefers XML) The CSV parser gets input from a CSV file. The REST module is used to add tags to the Tableau server by LUID. The Tableau Server/Client is used as a fast way to get all Tableau Workbooks and Views. This might call for a Python script that works with the Tableau REST API and follows the values specified in a CSV file. But, let's say non-techy business users want to scan 20 thousand Tableau data assets and conditionally apply something like a "Confidential" tag on many assets at once without involving IT. Individual Tableau report developers can easily make their products more find-able on a Tableau server by manually adding tags to their views, workbooks and data sources. Need to authenticate to each site individually and find what projects the site contains.Ĭode Stuff Code - Tag Tableau Workbooks and Views ![]() Choice! Use python REST instead of the tableau-server-client for tagging.The Tableau server-client is currently missing a get-view-by-id method for views, and a for loop using the get-workbook-by-id is slow. Choice! Return ALL workbooks from server, store results in memory or file, iterate over results in using Python to return items by substring.Otherwise, the equals operator takes an exact string. The in operator is available on workbooks, datasources and views, but is only meant to work on tags. In other words, you cannot return workbooks with the string " foo" in the title. ![]() The Tableau REST API does not allow substring filtering ( has operator) on anything other than Query_Jobs.Notes on using Python for working with Tableau, Solr and Lucidworks Fusion server data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |