<?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 REST API accessToken datasetId field in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-accessToken-datasetId-field/m-p/384340#M11411</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up a Power BI dashboard using NodeJS and ejs with the REST API. (&lt;A title="" href="https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to successfully login from my code and get the access token from&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="" href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To my understanding, after that, I need to get another access token from&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="" href="https://api.powerbi.com/v1.0/myorg/groups/%7BgroupId%7D/reports/%7BreportId" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId&lt;/A&gt;}, by means of setting an Authorization header like "Authorization" "Bearer {receivedToken}" and sending a GET request to that URL. The issue is that, after that request, I receive a response with fields such as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@odata.context, id, webUrl, etc. but the only "new" field that I receive is a "datasetId". However, I can't seem to find the description of that field, but I assume is the accessToken that needs to be passed in the "config" object to the powerbi.embed(...., config) function. Am I right?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The problem is that on the webpage, a message of "This content is not available" is shown, and checking the console errors, I can see a 403 error for the resource:&amp;nbsp;&lt;A title="" href="https://wabi-south-east-asia-redirect.analysis.windows.net/metadata/cluster" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wabi-south-east-asia-redirect.analysis.windows.net/metadata/cluster&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there something I'm missing? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Mar 2018 06:22:18 GMT</pubDate>
    <dc:creator>jcaffarel</dc:creator>
    <dc:date>2018-03-27T06:22:18Z</dc:date>
    <item>
      <title>REST API accessToken datasetId field</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-accessToken-datasetId-field/m-p/384340#M11411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up a Power BI dashboard using NodeJS and ejs with the REST API. (&lt;A title="" href="https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to successfully login from my code and get the access token from&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="" href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To my understanding, after that, I need to get another access token from&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="" href="https://api.powerbi.com/v1.0/myorg/groups/%7BgroupId%7D/reports/%7BreportId" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId&lt;/A&gt;}, by means of setting an Authorization header like "Authorization" "Bearer {receivedToken}" and sending a GET request to that URL. The issue is that, after that request, I receive a response with fields such as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@odata.context, id, webUrl, etc. but the only "new" field that I receive is a "datasetId". However, I can't seem to find the description of that field, but I assume is the accessToken that needs to be passed in the "config" object to the powerbi.embed(...., config) function. Am I right?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The problem is that on the webpage, a message of "This content is not available" is shown, and checking the console errors, I can see a 403 error for the resource:&amp;nbsp;&lt;A title="" href="https://wabi-south-east-asia-redirect.analysis.windows.net/metadata/cluster" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wabi-south-east-asia-redirect.analysis.windows.net/metadata/cluster&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there something I'm missing? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Mar 2018 06:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-accessToken-datasetId-field/m-p/384340#M11411</guid>
      <dc:creator>jcaffarel</dc:creator>
      <dc:date>2018-03-27T06:22:18Z</dc:date>
    </item>
  </channel>
</rss>

