<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reading Tableau Metadata with Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-Tableau-Metadata-with-Talend/m-p/2347661#M114879</link>
    <description>&lt;P&gt;I want to use Tableau's graphql to read metadata from our Tableau Online instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Tableau graphql is: &lt;/P&gt;&lt;P&gt;query getWorkbooks {workbooks {id, name, projectName, projectVizportalUrlId}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested it on &lt;A href="https://us-east-1.online.tableau.com/metadata/graphiql" target="_blank"&gt;https://us-east-1.online.tableau.com/metadata/graphiql&lt;/A&gt; and I get back the expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also created a Personal Authentication Token on Tableau Online which I need to pass in the body of the &lt;/P&gt;&lt;P&gt;tRESTClient &lt;/P&gt;and that's where I'm struggling. It can either be passed as an XML or JSON.&lt;P&gt;&lt;A href="https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm" target="_blank"&gt;https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The XML request body (message payload) using a Personal Access Token looks like the following example. The header of the request should contain either the key value pair&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;text/xml&lt;/P&gt;, or&amp;nbsp;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;application/xml&lt;/P&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;tsRequest&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;&lt;/P&gt;&lt;P&gt;credentials&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	  &lt;/P&gt;&lt;P&gt;personalAccessTokenName&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"MY_TOKEN_NAME"&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;personalAccessTokenSecret&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"qlE1g9MMh9vbrjjg==:rZTHhPpP2tUW1kfn4tjg8"&lt;/P&gt;&lt;P&gt; &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  		&amp;lt;&lt;/P&gt;&lt;P&gt;site&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;contentUrl&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"MarketingTeam"&lt;/P&gt;&lt;P&gt; /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/&lt;/P&gt;&lt;P&gt;credentials&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;/P&gt;&lt;P&gt;tsRequest&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;The same request body using JSON looks like the following. Its header should contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;application/json&lt;/P&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;"credentials"&lt;/P&gt;&lt;P&gt;: {&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"personalAccessTokenName"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"MY_TOKEN_NAME"&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"personalAccessTokenSecret"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"qlE1g9MMh9vbrjjg==:rZTHhPpP2tUW1kfn4tjg8"&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"site"&lt;/P&gt;&lt;P&gt;: {&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;"contentUrl"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"MarketingTeam"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I construct the above in Talend and pass to the tRESTClient body?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:04:14 GMT</pubDate>
    <dc:creator>Dobby1</dc:creator>
    <dc:date>2024-11-16T00:04:14Z</dc:date>
    <item>
      <title>Reading Tableau Metadata with Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-Tableau-Metadata-with-Talend/m-p/2347661#M114879</link>
      <description>&lt;P&gt;I want to use Tableau's graphql to read metadata from our Tableau Online instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Tableau graphql is: &lt;/P&gt;&lt;P&gt;query getWorkbooks {workbooks {id, name, projectName, projectVizportalUrlId}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested it on &lt;A href="https://us-east-1.online.tableau.com/metadata/graphiql" target="_blank"&gt;https://us-east-1.online.tableau.com/metadata/graphiql&lt;/A&gt; and I get back the expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also created a Personal Authentication Token on Tableau Online which I need to pass in the body of the &lt;/P&gt;&lt;P&gt;tRESTClient &lt;/P&gt;and that's where I'm struggling. It can either be passed as an XML or JSON.&lt;P&gt;&lt;A href="https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm" target="_blank"&gt;https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The XML request body (message payload) using a Personal Access Token looks like the following example. The header of the request should contain either the key value pair&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;text/xml&lt;/P&gt;, or&amp;nbsp;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;application/xml&lt;/P&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;tsRequest&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;&lt;/P&gt;&lt;P&gt;credentials&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	  &lt;/P&gt;&lt;P&gt;personalAccessTokenName&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"MY_TOKEN_NAME"&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;personalAccessTokenSecret&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"qlE1g9MMh9vbrjjg==:rZTHhPpP2tUW1kfn4tjg8"&lt;/P&gt;&lt;P&gt; &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  		&amp;lt;&lt;/P&gt;&lt;P&gt;site&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;contentUrl&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;"MarketingTeam"&lt;/P&gt;&lt;P&gt; /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/&lt;/P&gt;&lt;P&gt;credentials&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;/P&gt;&lt;P&gt;tsRequest&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;The same request body using JSON looks like the following. Its header should contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content-Type&lt;/P&gt;&amp;nbsp;:&amp;nbsp;&lt;P&gt;application/json&lt;/P&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;"credentials"&lt;/P&gt;&lt;P&gt;: {&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"personalAccessTokenName"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"MY_TOKEN_NAME"&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"personalAccessTokenSecret"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"qlE1g9MMh9vbrjjg==:rZTHhPpP2tUW1kfn4tjg8"&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;"site"&lt;/P&gt;&lt;P&gt;: {&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;"contentUrl"&lt;/P&gt;&lt;P&gt;: &lt;/P&gt;&lt;P&gt;"MarketingTeam"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I construct the above in Talend and pass to the tRESTClient body?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-Tableau-Metadata-with-Talend/m-p/2347661#M114879</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2024-11-16T00:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Tableau Metadata with Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-Tableau-Metadata-with-Talend/m-p/2347662#M114880</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Take a look at tXMLMap component where you can build a Document as body and pass it to tRestClient, the job design looks like:&lt;/P&gt;&lt;P&gt;tFixeFlowInput--main--tXMLMap--out1--&amp;gt;tRestClient--main--tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 04:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-Tableau-Metadata-with-Talend/m-p/2347662#M114880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-11T04:53:24Z</dc:date>
    </item>
  </channel>
</rss>

