<?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 Re: API call Datasets Get Tables DO NOT WORK in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1252847#M24932</link>
    <description>&lt;P&gt;As &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;has said, it seems like you're using the Push Datasets API, which won't work if you're using just a "standard" dataset.&lt;/P&gt;&lt;P&gt;If the dataset resides in a workspace assigned to a Premium (or Embedded) capacity, you can use the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo?view=asallproducts-allversions" target="_self"&gt;Tabular Object Model (TOM)&lt;/A&gt;&amp;nbsp;or the&amp;nbsp;&lt;A href="https://www.nuget.org/packages/Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64" target="_self"&gt;ADOMD .NET Client Library&lt;/A&gt;&amp;nbsp;(that one is .NET Core, but there are .NET Framework versions) to speak to the underlying Analysis Services (AS) model through the XMLA endpoint. You can see &lt;A href="https://endjin.com/blog/2020/02/azure-analysis-services-how-to-query-all-the-measures-in-a-model-from-net" target="_self"&gt;this blog for an example on how to query measures for an AS model&lt;/A&gt; - it's an example using Azure Analysis Services, but the same logic applies to the Power BI XMLA endpoint. It's also querying measures, not tables - but the same logic applies.&lt;/P&gt;&lt;P&gt;If you're not using Premium/Embedded, your options are a bit more limited. One far-from-ideal way to get the Table names would be to unzip the pbix file and look in the DiagramLayout file, which lists all the tables in the dataset. But without knowing what exactly you're trying to do in your scenario, I'm not sure whether that's a feasible solution.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 11:19:55 GMT</pubDate>
    <dc:creator>ed-freeman</dc:creator>
    <dc:date>2020-08-03T11:19:55Z</dc:date>
    <item>
      <title>API call Datasets Get Tables DO NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1242742#M24877</link>
      <description>&lt;P&gt;I am trying to fetch Tables for a dataset from the API.&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;client.Datasets.GetTablesInGroupAsync(&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;client.Datasets.GetTablesAsync(&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;client.Datasets.GetTablesInGroup(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;none of them work. They all throw the same error: &lt;STRONG&gt;&lt;EM&gt;Operation returned an invalid status code 'NotFound'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How do I go about fetching the Tables for a dataset?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 18:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1242742#M24877</guid>
      <dc:creator>TBardien</dc:creator>
      <dc:date>2020-07-22T18:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: API call Datasets Get Tables DO NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1243261#M24884</link>
      <description>&lt;P&gt;Try it out in the sandbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_gettablesingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_gettablesingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked for me. NOTE: This call is only working with &lt;STRONG&gt;Push&lt;/STRONG&gt; datasets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 00:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1243261#M24884</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-23T00:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: API call Datasets Get Tables DO NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1251956#M24926</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&amp;nbsp;What is the difference between a dataset and a push dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 07:41:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1251956#M24926</guid>
      <dc:creator>TBardien</dc:creator>
      <dc:date>2020-07-27T07:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: API call Datasets Get Tables DO NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1252754#M24931</link>
      <description>&lt;P&gt;Dataset : you own it and manipulate it via .pbix. you can selectively change its data&lt;/P&gt;&lt;P&gt;Push dataset: Azure owns it and you can only post to it and query it. There is no .pbix. you cannot change its data after posting/pushing. Only full delete and start over.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 12:44:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1252754#M24931</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-27T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: API call Datasets Get Tables DO NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1252847#M24932</link>
      <description>&lt;P&gt;As &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;has said, it seems like you're using the Push Datasets API, which won't work if you're using just a "standard" dataset.&lt;/P&gt;&lt;P&gt;If the dataset resides in a workspace assigned to a Premium (or Embedded) capacity, you can use the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo?view=asallproducts-allversions" target="_self"&gt;Tabular Object Model (TOM)&lt;/A&gt;&amp;nbsp;or the&amp;nbsp;&lt;A href="https://www.nuget.org/packages/Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64" target="_self"&gt;ADOMD .NET Client Library&lt;/A&gt;&amp;nbsp;(that one is .NET Core, but there are .NET Framework versions) to speak to the underlying Analysis Services (AS) model through the XMLA endpoint. You can see &lt;A href="https://endjin.com/blog/2020/02/azure-analysis-services-how-to-query-all-the-measures-in-a-model-from-net" target="_self"&gt;this blog for an example on how to query measures for an AS model&lt;/A&gt; - it's an example using Azure Analysis Services, but the same logic applies to the Power BI XMLA endpoint. It's also querying measures, not tables - but the same logic applies.&lt;/P&gt;&lt;P&gt;If you're not using Premium/Embedded, your options are a bit more limited. One far-from-ideal way to get the Table names would be to unzip the pbix file and look in the DiagramLayout file, which lists all the tables in the dataset. But without knowing what exactly you're trying to do in your scenario, I'm not sure whether that's a feasible solution.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 11:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-call-Datasets-Get-Tables-DO-NOT-WORK/m-p/1252847#M24932</guid>
      <dc:creator>ed-freeman</dc:creator>
      <dc:date>2020-08-03T11:19:55Z</dc:date>
    </item>
  </channel>
</rss>

