<?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: Find the mode type in a dataset through the API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2063497#M31624</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26630"&gt;@TexasBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI REST API doesn't support you to determine what mode the dataset is in Power BI Service directly.&lt;/P&gt;
&lt;P&gt;You could try&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group" target="_self"&gt;Datasets - Get Datasources In Group&amp;nbsp;&lt;/A&gt;to determind what data source your dataset contains. Find the connection mode the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/power-bi-data-sources" target="_self"&gt;Power BI data sources&lt;/A&gt; support to determind.&lt;/P&gt;
&lt;P&gt;Here is a post that the user determind whether his dataset is Import or Direct Query by&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/set-all-dataset-connections-in-group" target="_self"&gt;Set All Connections API&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This API only support Direct Query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For reference:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Identification-of-Import-vs-Direct-Query-Datasets/m-p/249555" target="_self"&gt;REST API Identification of Import vs Direct Query Datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Or you can determind by the refresh way. For example, if your data source support Import/DQ or Import / Live connection, make sure the refresh way, schedule refresh(Import) or schedule cache refresh(DQ or LC).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 07:37:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-08T07:37:28Z</dc:date>
    <item>
      <title>Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2056611#M31531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to pull all the datasets as the admin, but I would like to tell what mode they are on (Direct Query, Import, Dual)?? How can I do this through the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2056611#M31531</guid>
      <dc:creator>TexasBI</dc:creator>
      <dc:date>2021-09-03T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2059067#M31563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26630"&gt;@TexasBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you connect to your data source by API, I think you use Web connector. Web connector only support import mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 905px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/587785iF41E48C44272B1CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you use other connector to connect to your data source, you may refer to this &lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/power-bi-data-sources" target="_self"&gt;blog&lt;/A&gt; for more details about supporting connection mode.&lt;/P&gt;
&lt;P&gt;Here is a offical blog about Power BI Rest API. For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/" target="_self"&gt;Power BI REST APIs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It seems that Power BI doesn't support you to change connection mode by API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 08:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2059067#M31563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-06T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2061898#M31597</link>
      <description>&lt;P&gt;Hey&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response but this what not what I was talking about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I was asking is when I use the Power BI REST API to pull the metadata on the dataset from the Power BI Service, how can I determine what mode the dataset is in?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:14:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2061898#M31597</guid>
      <dc:creator>TexasBI</dc:creator>
      <dc:date>2021-09-07T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2063497#M31624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26630"&gt;@TexasBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI REST API doesn't support you to determine what mode the dataset is in Power BI Service directly.&lt;/P&gt;
&lt;P&gt;You could try&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group" target="_self"&gt;Datasets - Get Datasources In Group&amp;nbsp;&lt;/A&gt;to determind what data source your dataset contains. Find the connection mode the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/power-bi-data-sources" target="_self"&gt;Power BI data sources&lt;/A&gt; support to determind.&lt;/P&gt;
&lt;P&gt;Here is a post that the user determind whether his dataset is Import or Direct Query by&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/set-all-dataset-connections-in-group" target="_self"&gt;Set All Connections API&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This API only support Direct Query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For reference:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Identification-of-Import-vs-Direct-Query-Datasets/m-p/249555" target="_self"&gt;REST API Identification of Import vs Direct Query Datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Or you can determind by the refresh way. For example, if your data source support Import/DQ or Import / Live connection, make sure the refresh way, schedule refresh(Import) or schedule cache refresh(DQ or LC).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 07:37:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2063497#M31624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-08T07:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2064227#M31633</link>
      <description>&lt;P&gt;Hey&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sending that info. What is interesting is that I have an Azure SQL database and I have created a report using Direct Query mode. When I go to do a GET call in the REST API for datasources, I am returned the same result as if I am on Import mode. This is really strange.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 12:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2064227#M31633</guid>
      <dc:creator>TexasBI</dc:creator>
      <dc:date>2021-09-08T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2066116#M31649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26630"&gt;@TexasBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you call REST API in Power BI Desktop?&lt;/P&gt;
&lt;P&gt;What connector did you use to do a GET call in the REST API for datasource?&lt;/P&gt;
&lt;P&gt;As my above reply, if you use web connector to call REST API, the connection mode will be Import mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 08:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2066116#M31649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-09T08:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find the mode type in a dataset through the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2066710#M31651</link>
      <description>&lt;P&gt;My datasource is an Azure SQL database and I used the Azure SQL connector.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 12:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-the-mode-type-in-a-dataset-through-the-API/m-p/2066710#M31651</guid>
      <dc:creator>TexasBI</dc:creator>
      <dc:date>2021-09-09T12:30:16Z</dc:date>
    </item>
  </channel>
</rss>

