<?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 PowerBI Embedded Create Report based on Dataset in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Create-Report-based-on-Dataset/m-p/1216897#M24700</link>
    <description>&lt;P&gt;I am trying to create PowerBI report using PowerBI Embedded SDK , I have followed below github article.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please elaborate on how to generate the access token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accesstoken generated using below code is not valid and it return 403 error on PowerBI.createreport function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;using Microsoft.PowerBI.Security;

// rlsUsername and roles are optional
string scopes = "Dataset.Read Workspace.Report.Create";
PowerBIToken embedToken = PowerBIToken.CreateReportEmbedTokenForCreation(workspaceCollectionName, workspaceId, datasetId, null, null, scopes);

var token = embedToken.Generate("{access key}");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also where to get the Access Key as show in last line of above code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jul 2020 22:28:56 GMT</pubDate>
    <dc:creator>nd1022</dc:creator>
    <dc:date>2020-07-12T22:28:56Z</dc:date>
    <item>
      <title>PowerBI Embedded Create Report based on Dataset</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Create-Report-based-on-Dataset/m-p/1216897#M24700</link>
      <description>&lt;P&gt;I am trying to create PowerBI report using PowerBI Embedded SDK , I have followed below github article.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please elaborate on how to generate the access token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accesstoken generated using below code is not valid and it return 403 error on PowerBI.createreport function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;using Microsoft.PowerBI.Security;

// rlsUsername and roles are optional
string scopes = "Dataset.Read Workspace.Report.Create";
PowerBIToken embedToken = PowerBIToken.CreateReportEmbedTokenForCreation(workspaceCollectionName, workspaceId, datasetId, null, null, scopes);

var token = embedToken.Generate("{access key}");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also where to get the Access Key as show in last line of above code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 22:28:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Create-Report-based-on-Dataset/m-p/1216897#M24700</guid>
      <dc:creator>nd1022</dc:creator>
      <dc:date>2020-07-12T22:28:56Z</dc:date>
    </item>
  </channel>
</rss>

