<?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: how to push data trough api in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/843511#M21355</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check whether the &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_deleterowsingroup" target="_blank" rel="noopener"&gt;below conditions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 925px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/207887i3C6CABD8B4D3C82B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I couldn't able to read the error properly as the screenshot not in english&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 10:05:11 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2019-11-12T10:05:11Z</dc:date>
    <item>
      <title>how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/838737#M21301</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm following this tutorial:&lt;BR /&gt;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/fr-fr/power-bi/developer/walkthrough-push-data" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/fr-fr/power-bi/developer/walkthrough-push-data&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I choosed a native application type in the first step, what should I use for the different uri in the second step? in the native mode, you have only the clientID&lt;BR /&gt;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/fr-fr/power-bi/developer/walkthrough-push-data-get-token" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/fr-fr/power-bi/developer/walkthrough-push-data-get-token&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-comment"&gt;//RedirectUri you used when you register your app.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;//For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// You can use this redirect uri for your client app&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;string&lt;/SPAN&gt;&lt;SPAN&gt; redirectUri = &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"&lt;A href="https://login.live.com/oauth20_desktop.srf" target="_blank" rel="noopener"&gt;https://login.live.com/oauth20_desktop.srf&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;//Resource Uri for Power BI API&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;string&lt;/SPAN&gt;&lt;SPAN&gt; resourceUri = &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;//OAuth2 authority Uri&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;string&lt;/SPAN&gt;&lt;SPAN&gt; authorityUri = &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"&lt;A href="https://login.microsoftonline.net/common/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.net/common/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:47:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/838737#M21301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-06T13:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/839564#M21308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Redirect url become valid only for the Web app type registration. Since you used native you can use the one which provided in the code itself&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string redirectUri = "https://login.live.com/oauth20_desktop.srf";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/839564#M21308</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-11-07T07:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840020#M21318</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you answer, for the resourceUri, I shloud keep the follownig line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; string resourceUri = "https://analysis.windows.net/powerbi/api";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the window for loggin/password but when I click on the button to connect, I have the following message&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loggin.PNG" style="width: 558px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/206829iDB109761C7C1157C/image-size/large?v=v2&amp;amp;px=999" role="button" title="loggin.PNG" alt="loggin.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840020#M21318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-07T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840064#M21320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok the document is out-dated. Please follow my instruction as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Update the nuget package manager for the&amp;nbsp;Microsoft.IdentityModel.Clients.ActiveDirectory&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 4.5.1.0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; update your code like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; AuthenticationContext authContext = new AuthenticationContext(authorityUri);
           //update with your master account email and password
            var userCreds = new UserPasswordCredential("UserName@MyTenent.onMicrosoft.com", "myEasyToCrackPassword");

            var userAuthnResult = authContext.AcquireTokenAsync(resourceUri, clientID, userCreds).Result;
            
            string token=userAuthnResult.AccessToken;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You don't need the redirect url at all.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ResourceUri and authorityurl remains same as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string resourceUri = "https://analysis.windows.net/powerbi/api";

//OAuth2 authority Uri
string authorityUri = "https://login.microsoftonline.com/common/";&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840064#M21320</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-11-07T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840797#M21327</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt; &lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;!&lt;/P&gt;&lt;P&gt;It works, I have the token et I create the dataset but it doesn't work when I add rows as in this step:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-add-rows" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-add-rows&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="addRows.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/207082iC0E8444374B95E78/image-size/large?v=v2&amp;amp;px=999" role="button" title="addRows.PNG" alt="addRows.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 08:49:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840797#M21327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-08T08:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840804#M21328</link>
      <description>&lt;P&gt;I found the answer here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Step-4-Get-a-dataset-to-add-rows-into-a-Power-BI-table-Example/m-p/115221#M3970" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Developer/Step-4-Get-a-dataset-to-add-rows-into-a-Power-BI-table-Example/m-p/115221#M3970&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 08:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840804#M21328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-08T08:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840823#M21329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad that you solved your issue and also provided the link. I hope it will help sombody in the future too&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 09:14:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840823#M21329</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-11-08T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840936#M21332</link>
      <description>&lt;P&gt;I try to delete the rows I created, but I have a timeout... Is it only possible to delete the dataset? not rows it contains? thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/207124iEDCB1C9753A2C1A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete.PNG" alt="delete.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 11:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/840936#M21332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-08T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/843355#M21354</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;To go further, I would like to refresh my data through API:&lt;BR /&gt;The first time, I add rows in the dataset I created, as explain before.&lt;/P&gt;&lt;P&gt;Once done, I would like to empty (or delete) the dataset&amp;nbsp; to send new data&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt;, if you can help me, thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 08:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/843355#M21354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-12T08:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/843511#M21355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check whether the &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_deleterowsingroup" target="_blank" rel="noopener"&gt;below conditions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 925px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/207887i3C6CABD8B4D3C82B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I couldn't able to read the error properly as the screenshot not in english&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/843511#M21355</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-11-12T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to push data trough api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/846297#M21397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works with the deleteRowsInGroup; it seems a workspace is necessary...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 14:34:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-push-data-trough-api/m-p/846297#M21397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-14T14:34:32Z</dc:date>
    </item>
  </channel>
</rss>

