<?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 Dataset.Tables is always null in Power BI for .NET v2 in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/288358#M8467</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to get the access to the tables inside a dataset. I managed to get access to the dataset however the when I use dataset.Tables it always returns null. I also tried to use Datasets.GetTables and passed my dataset ID however it returned "Operation returned an invalid status code 'NotFound'" while with the same Dataset ID, I can get the dataset successfully. I'm using&amp;nbsp;&lt;/SPAN&gt;Microsoft.PowerBI.Api.V2 and developing on a Windows App. Can someone help to point out what I am missing here please? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var credential = new UserPasswordCredential(Username, Password);

// Authenticate using created credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential).Result;

var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");

// Create a Power BI Client object (it will be used to call Power BI APIs)
using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
{
	var dataset = client.Datasets.GetDatasetByIdAsync("My dataset id");
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 23:43:57 GMT</pubDate>
    <dc:creator>hson89</dc:creator>
    <dc:date>2017-10-23T23:43:57Z</dc:date>
    <item>
      <title>Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/288358#M8467</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to get the access to the tables inside a dataset. I managed to get access to the dataset however the when I use dataset.Tables it always returns null. I also tried to use Datasets.GetTables and passed my dataset ID however it returned "Operation returned an invalid status code 'NotFound'" while with the same Dataset ID, I can get the dataset successfully. I'm using&amp;nbsp;&lt;/SPAN&gt;Microsoft.PowerBI.Api.V2 and developing on a Windows App. Can someone help to point out what I am missing here please? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var credential = new UserPasswordCredential(Username, Password);

// Authenticate using created credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential).Result;

var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");

// Create a Power BI Client object (it will be used to call Power BI APIs)
using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
{
	var dataset = client.Datasets.GetDatasetByIdAsync("My dataset id");
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 23:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/288358#M8467</guid>
      <dc:creator>hson89</dc:creator>
      <dc:date>2017-10-23T23:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/292464#M8598</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="45096" data-lia-user-login="hson89" class="lia-mention lia-mention-user"&gt;hson89&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm trying to get the access to the tables inside a dataset. I managed to get access to the dataset however the when I use dataset.Tables it always returns null. I also tried to use Datasets.GetTables and passed my dataset ID however it returned "Operation returned an invalid status code 'NotFound'" while with the same Dataset ID, I can get the dataset successfully. I'm using&amp;nbsp;&lt;/SPAN&gt;Microsoft.PowerBI.Api.V2 and developing on a Windows App. Can someone help to point out what I am missing here please? Below is my code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var credential = new UserPasswordCredential(Username, Password);

// Authenticate using created credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential).Result;

var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");

// Create a Power BI Client object (it will be used to call Power BI APIs)
using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
{
	var dataset = client.Datasets.GetDatasetByIdAsync("My dataset id");
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="45096" data-lia-user-login="hson89" class="lia-mention lia-mention-user"&gt;hson89&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What type is the dataset? The&amp;nbsp;underlying REST API&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt203556.aspx" target="_self"&gt;Get Tables&lt;/A&gt;&amp;nbsp;only supports&amp;nbsp; &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-real-time-streaming/#types-of-real-time-datasets" target="_self"&gt;push datasets&lt;/A&gt;&amp;nbsp;and hybrid datasets(streaming dataset with historic data analysis enabled).&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:16:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/292464#M8598</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-10-30T09:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/292654#M8603</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;. It wasn't a Push dataset or Hybrid.&amp;nbsp;Thanks for your advice.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/292654#M8603</guid>
      <dc:creator>hson89</dc:creator>
      <dc:date>2017-10-30T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345334#M10236</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Where is this screen on the powerBI platform? I am new on this service and I don't know where is the option to change this.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 13:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345334#M10236</guid>
      <dc:creator>kelvinferreira</dc:creator>
      <dc:date>2018-01-25T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345707#M10248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find it under the left menu &amp;gt; Workspaces&amp;gt;Datasets&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 02:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345707#M10248</guid>
      <dc:creator>hson89</dc:creator>
      <dc:date>2018-01-26T02:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset.Tables is always null in Power BI for .NET v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345975#M10265</link>
      <description>&lt;P&gt;Hi, cool! I found it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how can I change a dataset api access type? Is there a war to do that?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 11:15:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-Tables-is-always-null-in-Power-BI-for-NET-v2/m-p/345975#M10265</guid>
      <dc:creator>kelvinferreira</dc:creator>
      <dc:date>2018-01-26T11:15:10Z</dc:date>
    </item>
  </channel>
</rss>

