Tableauの操作をUipathで自動化したい(I want to automate Tableau operations with Uipath)

■使用ツール
・UiPath
・TableauDesktop

■やりたいこと
・TableauとUipathを連携し、Tableauのクロス集計表をエクセルにコピーしたいです
参考

■困っていること


APIトークン名:任意できめることができる
APIトークンシークレット:TableauCloudから発行可能
APIversion:わからない
siteName:わからない
TableauServerURL:わからない

上記、3つの値を何にすればいいかわからないです。
変数で指定するのか、値を直接指定すればいいかもわからないです。

どなたか教えていただけないでしょうか。
宜しくお願いいたします。

こんにちは

上記のアクティビティはサーバーに対してAPIで通信を行うものなので、Tableau Desktopを操作するものではないと思います。
Tableau Desktopを操作するならUI操作になると思いますし、サーバー側が利用できるなら上記が利用できると思います。

1 Like

@traffic_light

  1. If tableau desktop then ui automation would be the best way
  2. If you want to connect with server then there are multiple auth options if you click dropdown you would see the options available and also you might reach to your admin to enable the api access

setup details are here

cheers

1 Like

ご回答、ありがとうございます!
UI操作で行うことにします!

■やりたいこと
┗・Tableauで表示されているクロス集計表を、エクセルに値ではりつけたい

処理想定
①Tableauのシート名と、エクセルのシート名を突後して、マッピング表を作成する
②シート名をforeachでまわして、1シートずつ処理する
処理内容:Tableauのクロス集計表を、エクセルのA1(そのシートも固定)に値ではりつける

■困っていること
・Tableauのシート名をどうやって取得すればいいわからない
┗・エクスプローラー上の、TableauのファイルをXMLデータとして読み込んで、シート名を取得しようとしたができない
アドバイスいただけたら大変うれしいです。

sheetNodes =XmlDocument.SelectNodes(“//sheet[@name]”)

Thank you for your reply!

I will do it using the UI!

■What I want to do

┗・I want to paste the values from the cross-tabulation table displayed in Tableau into Excel.

Processing plan

①Match the Tableau sheet name with the Excel sheet name and create a mapping table.

②Iterate through the sheet names using a foreach loop and process each sheet one by one.

Processing content: Paste the values from the Tableau cross-tabulation table into Excel cell A1 (which is also fixed).

■Issues

• I don’t know how to retrieve the sheet names in Tableau.

┗• I tried to read the Tableau file as XML data in Explorer to retrieve the sheet names, but it didn’t work.

Any advice would be greatly appreciated.

sheetNodes = XmlDocument.SelectNodes(“//sheet[@name]”)

*Translated with DeepL.com (free version)*Thank you for your reply!

I will do it using the UI!

■What I want to do

┗・I want to paste the values from the cross-tabulation table displayed in Tableau into Excel.

Processing plan

①Match the Tableau sheet name with the Excel sheet name and create a mapping table.

②Iterate through the sheet names using a foreach loop and process each sheet one by one.

Processing content: Paste the values from the Tableau cross-tabulation table into Excel cell A1 (which is also fixed).

■Issues

• I don’t know how to retrieve the sheet names in Tableau.

┗• I tried to read the Tableau file as XML data in Explorer to retrieve the sheet names, but it didn’t work.

Any advice would be greatly appreciated.

sheetNodes = XmlDocument.SelectNodes(“//sheet[@name]”)

このファイルがXMLで、内部にシート名があるなら技術的には抽出てきると思います。
可能であればダミーでも良いのでファイルと抽出したいシート名を共有いただければと思います。

1 Like

やりたいこと
Tableau(デスクトップ)で、以下のシート名のデータがクロス集計表示されている「
シート名:“あ” and “い”

いま、クロス集計を右クリックして、コピー→クロス集計を行い、
【Tableauのシート名と同じシート名をもった、任意のエクセル(A1)に値ではりつけたい】です。
貼り付け先のエクセルの場所は変数で指定したいです。

(Tableauのデータは新規登録したという理由で添付できませんでした)