divinorum-webb / tableau-api-lib

An API library that allows developers to call on the methods listed in Tableau's REST API documentation.
MIT License
96 stars 34 forks source link

Drill down / up hierarchies using the API when querying image ? #111

Open YovelD opened 1 year ago

YovelD commented 1 year ago

Hierarchies in Tableau

Hi !

Is there any way to "click" the + or - icon to drill down or drill up a hierarchy ? I'd then query a screenshot of the view.

divinorum-webb commented 1 year ago

@YovelD I don't believe Tableau's REST API supports interacting with the visual component of hierarchies when hitting their endpoints. A possible workaround would be to publish two have two versions of the worksheet published, one with the expanded hierarchy and one without. Then you could dynamically query expanded_version and collapsed_version as needed. If you don't want end users to see those versions, publish them to a project locked by permissions that no user has permissions to engage with but that your API user account does have permissions to interact with. That's how I'd go about working around the limitations, at least! Hope it helps.