<?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 Unable to connect to Power bi using restapi in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Unable-to-connect-to-Power-bi-using-restapi/m-p/543668#M8478</link>
    <description>&lt;P&gt;I am trying to send POST request to&lt;/P&gt;&lt;P&gt;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt; to get authorization code with parameters inside the body:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"grant_type":"password",&lt;BR /&gt;"client_id":"xxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"resource":"&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;",&lt;BR /&gt;"username":"xxxxx.onmicrosoft.com",&lt;BR /&gt;"password":"xxxxxxx",&lt;BR /&gt;"client_secret":"xxxxxxxxxxxxxx"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I am getting error:&lt;/P&gt;&lt;P&gt;&amp;gt; { "error": "invalid_request", "error_description": "AADSTS90014: The&lt;BR /&gt;&amp;gt; request body must contain the following parameter: 'grant_type'. Trace&lt;BR /&gt;&amp;gt; ID: 6725893b-5f12-4f6b-9334-ea6c86f10400 Correlation ID:&lt;BR /&gt;&amp;gt; 27f51716-70fb-45f0-85d5-4ccfb32390c2 Timestamp: 2018-10-16 12:21:04Z",&lt;BR /&gt;&amp;gt; "error_codes": [ 90014 ], "timestamp": "2018-10-16 12:21:04Z",&lt;BR /&gt;&amp;gt; "trace_id": "6725893b-5f12-4f6b-9334-ea6c86f10400", "correlation_id":&lt;BR /&gt;&amp;gt; "27f51716-70fb-45f0-85d5-4ccfb32390c2" }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 15:42:26 GMT</pubDate>
    <dc:creator>sar</dc:creator>
    <dc:date>2018-10-16T15:42:26Z</dc:date>
    <item>
      <title>Unable to connect to Power bi using restapi</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Unable-to-connect-to-Power-bi-using-restapi/m-p/543668#M8478</link>
      <description>&lt;P&gt;I am trying to send POST request to&lt;/P&gt;&lt;P&gt;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt; to get authorization code with parameters inside the body:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"grant_type":"password",&lt;BR /&gt;"client_id":"xxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"resource":"&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;",&lt;BR /&gt;"username":"xxxxx.onmicrosoft.com",&lt;BR /&gt;"password":"xxxxxxx",&lt;BR /&gt;"client_secret":"xxxxxxxxxxxxxx"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I am getting error:&lt;/P&gt;&lt;P&gt;&amp;gt; { "error": "invalid_request", "error_description": "AADSTS90014: The&lt;BR /&gt;&amp;gt; request body must contain the following parameter: 'grant_type'. Trace&lt;BR /&gt;&amp;gt; ID: 6725893b-5f12-4f6b-9334-ea6c86f10400 Correlation ID:&lt;BR /&gt;&amp;gt; 27f51716-70fb-45f0-85d5-4ccfb32390c2 Timestamp: 2018-10-16 12:21:04Z",&lt;BR /&gt;&amp;gt; "error_codes": [ 90014 ], "timestamp": "2018-10-16 12:21:04Z",&lt;BR /&gt;&amp;gt; "trace_id": "6725893b-5f12-4f6b-9334-ea6c86f10400", "correlation_id":&lt;BR /&gt;&amp;gt; "27f51716-70fb-45f0-85d5-4ccfb32390c2" }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:42:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Unable-to-connect-to-Power-bi-using-restapi/m-p/543668#M8478</guid>
      <dc:creator>sar</dc:creator>
      <dc:date>2018-10-16T15:42:26Z</dc:date>
    </item>
  </channel>
</rss>

