I'm not sure about the REST API and the luid. However, are you able to identify the URL of the custom view? If you have the URL of the view -and that might be a big assumption- you can append a .pdf at the end, which would be equivalent to using the export functionality.
For example, let's assume we have a view URL that looks like this:
If we create a custom view on it, the URL would looks something like this:
You can then append a .pdf at the end, which will load the view as a pdf file instead of a live view:
Would love to hear how it goes.
Hope this helps!
Thank you for your response. We have managed to get the URLs of the custom views (not a straight forward task by any means) and in fact the solution you have mentioned is the path we are trying to move away from. When you add ".pdf" to the end of a URL, there appears to be a random bug when creating a PDF for tabular data. Column headers do not always appear.
We have found documentation here that issues a work around for this issue if we move to tabcmd, and I think this is the path we will take.
I was interested in a solution that would allow us to use REST API, but it appears the you can only export Views using the REST API and not Custom Views.
Thanks again for you time Santiago!
No worries! Thanks for the follow up.
I was actually curious about how you'd go about getting the URL of the custom view. Would you mind sharing a little bit about that please?
1 of 1 people found this helpful
We have found two methods to be successful. The first method was the undocumented API. I do not recommend this method because it is undocumented, so you have to reverse engineer or rely on someone else to post documentation when you upgrade your server.
The second method I'm are exploring is to expose the Custom View URLs using information that we already have in the PostgreSQL (Tableau Server Repository) database that is essentially your Tableau servers source of truth. When you connect to this db, you can find a custom view table that has the URL that you need to plug into tabcmd to export PDFs. The link below talks a little bit more about the PostgreSQL db. Someone has posted in the community a data source that has the correct joins to access the Custom View URLs if you connect to your PostgreSQL db through Tableau. You can then publish this data source for your own use. You could even use the Tableau REST API to read the URLs you've exposed in the data source.
Thank you, Katie! I was thinking about the Repo but the Undocumented API... Wow! Cool stuff!