<?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: Patching an Online DirectQuery datasource in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351397#M10443</link>
    <description>&lt;P&gt;Can you please elaborate on what values should be provided for &lt;EM&gt;gatewayId&lt;/EM&gt; and &lt;EM&gt;datasourceId&lt;/EM&gt;?&amp;nbsp;&lt;SPAN class=""&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/11689" target="_self"&gt;v-ljerr-msft&lt;/A&gt;&amp;nbsp;responded with the same block of code in my request (&lt;A href="https://community.powerbi.com/t5/Developer/How-to-update-credentials-of-a-connection-with-V2-API-in-package/m-p/344260#M10205" target="_blank"&gt;https://community.powerbi.com/t5/Developer/How-to-update-credentials-of-a-connection-with-V2-API-in-package/m-p/344260#M10205&lt;/A&gt;) but I think you guys are only providing half the answer here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My datasource is &lt;STRONG&gt;Azure SQL&lt;/STRONG&gt; (*NOT* Analysis Services), but I'd also like this to work for &lt;STRONG&gt;Azure Table Storage&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can use the &lt;STRONG&gt;Microsoft.PowerBI.Api.V2&lt;/STRONG&gt; classes to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Enumerate my groups to find the group id I want by name via &lt;EM&gt;IPowerBIClient.Groups.GetGroupsAsync&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Enumerate the reports in the group to find the id of the report by name via &lt;EM&gt;IPowerBIClient.Reports.GetReportsInGroupAsync&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Each of these reports has a DataSetId, ok great, maybe that provides the gateway/datasourceId.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;I get the Dataset via &lt;EM&gt;IPowerBIClient.Datasets.GetDatasetByIdInGroupAsync&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dataset object has a Datasources property. However this is NULL. So I find myself at a dead end!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few other frustrations...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calling &lt;EM&gt;IPowerBIClient.Datasets.GetDatasetsAsync&lt;/EM&gt; returns an empty list. What the? Surely this should at least return the dataset that is returned by #4 above, plus any other datasets in any other reports in any other groups, i.e.&amp;nbsp;all datasets accessible to the authenticated user.&lt;/LI&gt;&lt;LI&gt;Your samples keep talking about a gatewayId, ok then lets call &lt;EM&gt;IPowerBIClient.Gateways.GetGatewaysAsync&lt;/EM&gt;... and I get nothing back (which makes sense, since I don't have any on-prem gateways running/configured, but your samples keep referring to gatewayId - which makes me think we are talking at cross-purposes re datasets using on-prem gateways vs cloud datasources).&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 05 Feb 2018 04:48:05 GMT</pubDate>
    <dc:creator>jimmcslim</dc:creator>
    <dc:date>2018-02-05T04:48:05Z</dc:date>
    <item>
      <title>Patching an Online DirectQuery datasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351230#M10430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can execute&amp;nbsp;a patch request to&amp;nbsp;set the credentials of a online directquery datasource using the HttpClient class&amp;nbsp;with no problem.&amp;nbsp;But now I'm looking for a way to do this using the classes of the&amp;nbsp;Microsoft.PowerBI.Api NuGet Package but I cannot find what method to use. I did find a class named&amp;nbsp;GatewayDatasource which looks like the json payload for a patch. But that is as far as I've come...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gunter&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 12:34:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351230#M10430</guid>
      <dc:creator>GunterM</dc:creator>
      <dc:date>2018-02-04T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Patching an Online DirectQuery datasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351257#M10433</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;m_client.Gateways.UpdateDatasource(&amp;lt;&lt;STRONG&gt;gatewayId&lt;/STRONG&gt;&amp;gt;, &amp;lt;&lt;STRONG&gt;datasourceId&lt;/STRONG&gt;&amp;gt;, &amp;lt;&lt;STRONG&gt;request&lt;/STRONG&gt;&amp;gt;);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;request&lt;/STRONG&gt; is&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- request {Microsoft.PowerBI.Api.V2.Models.UpdateDatasourceRequest} Microsoft.PowerBI.Api.V2.Models.UpdateDatasourceRequest&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- CredentialDetails {Microsoft.PowerBI.Api.V2.Models.CredentialDetails} Microsoft.PowerBI.Api.V2.Models.CredentialDetails&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CredentialType "Basic" string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Credentials "{\"credentialData\":[{\"name\":\"username\",\"value\":\"&amp;lt;&lt;STRONG&gt;username&lt;/STRONG&gt;&amp;gt;\"},{\"name\":\"password\",\"value\":\"&amp;lt;&lt;STRONG&gt;password&lt;/STRONG&gt;&amp;gt;"}]}" string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EncryptedConnection "Encrypted" string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EncryptionAlgorithm "None" string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PrivacyLevel "None" string&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eli.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 14:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351257#M10433</guid>
      <dc:creator>eligr</dc:creator>
      <dc:date>2018-02-04T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Patching an Online DirectQuery datasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351397#M10443</link>
      <description>&lt;P&gt;Can you please elaborate on what values should be provided for &lt;EM&gt;gatewayId&lt;/EM&gt; and &lt;EM&gt;datasourceId&lt;/EM&gt;?&amp;nbsp;&lt;SPAN class=""&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/11689" target="_self"&gt;v-ljerr-msft&lt;/A&gt;&amp;nbsp;responded with the same block of code in my request (&lt;A href="https://community.powerbi.com/t5/Developer/How-to-update-credentials-of-a-connection-with-V2-API-in-package/m-p/344260#M10205" target="_blank"&gt;https://community.powerbi.com/t5/Developer/How-to-update-credentials-of-a-connection-with-V2-API-in-package/m-p/344260#M10205&lt;/A&gt;) but I think you guys are only providing half the answer here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My datasource is &lt;STRONG&gt;Azure SQL&lt;/STRONG&gt; (*NOT* Analysis Services), but I'd also like this to work for &lt;STRONG&gt;Azure Table Storage&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can use the &lt;STRONG&gt;Microsoft.PowerBI.Api.V2&lt;/STRONG&gt; classes to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Enumerate my groups to find the group id I want by name via &lt;EM&gt;IPowerBIClient.Groups.GetGroupsAsync&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Enumerate the reports in the group to find the id of the report by name via &lt;EM&gt;IPowerBIClient.Reports.GetReportsInGroupAsync&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Each of these reports has a DataSetId, ok great, maybe that provides the gateway/datasourceId.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;I get the Dataset via &lt;EM&gt;IPowerBIClient.Datasets.GetDatasetByIdInGroupAsync&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dataset object has a Datasources property. However this is NULL. So I find myself at a dead end!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few other frustrations...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calling &lt;EM&gt;IPowerBIClient.Datasets.GetDatasetsAsync&lt;/EM&gt; returns an empty list. What the? Surely this should at least return the dataset that is returned by #4 above, plus any other datasets in any other reports in any other groups, i.e.&amp;nbsp;all datasets accessible to the authenticated user.&lt;/LI&gt;&lt;LI&gt;Your samples keep talking about a gatewayId, ok then lets call &lt;EM&gt;IPowerBIClient.Gateways.GetGatewaysAsync&lt;/EM&gt;... and I get nothing back (which makes sense, since I don't have any on-prem gateways running/configured, but your samples keep referring to gatewayId - which makes me think we are talking at cross-purposes re datasets using on-prem gateways vs cloud datasources).&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 05 Feb 2018 04:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351397#M10443</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-02-05T04:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Patching an Online DirectQuery datasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351435#M10445</link>
      <description>&lt;P&gt;What should be the values for gatewayId and datasourceId?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are providing the credentials for an Azure SQL or Azure Table Storage datasource, these things do not require an on-premise gateway to access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The V2 API (at least via Nuget) does not return any datasource objects when you request a dataset - therefore no datasource id can be provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gateways.GetGateways (or whatever it is called) returns nothing... as I have no on-prem gateways!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 06:03:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351435#M10445</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-02-05T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Patching an Online DirectQuery datasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351530#M10448</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;For&amp;nbsp;cloud data sources, there is a default gateway created by Power BI.&lt;/P&gt;&lt;P&gt;To find out the gateway and datasource ids, use this call:&amp;nbsp;GetBoundGatewayDatasources (&lt;A href="https://msdn.microsoft.com/en-us/library/mt732874.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt732874.aspx&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;The SDK equivalent&amp;nbsp;are Datasets.GetGatewayDatasources or&amp;nbsp;Datasets.GetGatewayDatasourcesInGroup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eli.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 07:51:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Patching-an-Online-DirectQuery-datasource/m-p/351530#M10448</guid>
      <dc:creator>eligr</dc:creator>
      <dc:date>2018-02-05T07:51:04Z</dc:date>
    </item>
  </channel>
</rss>

