<?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 Extracting dataset queries with powerBI REST in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3424127#M44376</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a c# project which I want to contact the Power BI Rest v1.0 in order to extract the datasets my team has.&lt;/P&gt;&lt;P&gt;I am looking for a way to get all the datasets' queries.&lt;/P&gt;&lt;P&gt;I'd like to find a way, with a given datasetID, the get the queries it's holding through the API. I saw someone suggesting to use&amp;nbsp;@https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/executeQueries&amp;nbsp; and&amp;nbsp;&lt;SPAN&gt;run&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_PARTITIONS against the dataset but when I am trying this I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  &lt;SPAN class=""&gt;"results"&lt;/SPAN&gt;: [
    {
      &lt;SPAN class=""&gt;"error"&lt;/SPAN&gt;: {
        &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"DataExtensionError"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;""&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;"details"&lt;/SPAN&gt;: [
          {
            &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"AnalysisServicesErrorCode"&lt;/SPAN&gt;,
            &lt;SPAN class=""&gt;"detail"&lt;/SPAN&gt;: {
              &lt;SPAN class=""&gt;"type"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"1"&lt;/SPAN&gt;,
              &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;0&lt;/SPAN&gt;
            }
          }
        ]
      }
    }
  ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I'd appriciate some help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 06:52:03 GMT</pubDate>
    <dc:creator>sonsi</dc:creator>
    <dc:date>2023-09-12T06:52:03Z</dc:date>
    <item>
      <title>Extracting dataset queries with powerBI REST</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3424127#M44376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a c# project which I want to contact the Power BI Rest v1.0 in order to extract the datasets my team has.&lt;/P&gt;&lt;P&gt;I am looking for a way to get all the datasets' queries.&lt;/P&gt;&lt;P&gt;I'd like to find a way, with a given datasetID, the get the queries it's holding through the API. I saw someone suggesting to use&amp;nbsp;@https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/executeQueries&amp;nbsp; and&amp;nbsp;&lt;SPAN&gt;run&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_PARTITIONS against the dataset but when I am trying this I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  &lt;SPAN class=""&gt;"results"&lt;/SPAN&gt;: [
    {
      &lt;SPAN class=""&gt;"error"&lt;/SPAN&gt;: {
        &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"DataExtensionError"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;""&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;"details"&lt;/SPAN&gt;: [
          {
            &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"AnalysisServicesErrorCode"&lt;/SPAN&gt;,
            &lt;SPAN class=""&gt;"detail"&lt;/SPAN&gt;: {
              &lt;SPAN class=""&gt;"type"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"1"&lt;/SPAN&gt;,
              &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;0&lt;/SPAN&gt;
            }
          }
        ]
      }
    }
  ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I'd appriciate some help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 06:52:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3424127#M44376</guid>
      <dc:creator>sonsi</dc:creator>
      <dc:date>2023-09-12T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting dataset queries with powerBI REST</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3429793#M44438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/615180"&gt;@sonsi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;AS the official document and correspond limitations list mentions, current this API only support DAX expressions. The query that you used is T-SQL queries which not supported.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries#limitations" target="_blank"&gt;Datasets - Execute Queries - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 02:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3429793#M44438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-14T02:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting dataset queries with powerBI REST</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3455668#M44768</link>
      <description>&lt;P&gt;Is there another way to get the queries through an API the queries of a specific dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 08:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Extracting-dataset-queries-with-powerBI-REST/m-p/3455668#M44768</guid>
      <dc:creator>sonsi</dc:creator>
      <dc:date>2023-10-02T08:34:15Z</dc:date>
    </item>
  </channel>
</rss>

