<?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: Embed Dashboard in AppOwnsData mode in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Embed-Dashboard-in-AppOwnsData-mode/m-p/1796239#M29096</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/296699"&gt;@Gergan&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'd like to suggest you check the prerequisite step of embed if you did not correct config these permissions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/register-app?tabs=customers%2CAzure" target="_self"&gt;Register an Azure AD application to use with Power BI&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, how did your security group and workspace configured? Can you please share more detail?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_self"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 01:27:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-21T01:27:47Z</dc:date>
    <item>
      <title>Embed Dashboard in AppOwnsData mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embed-Dashboard-in-AppOwnsData-mode/m-p/1792155#M29064</link>
      <description>&lt;P&gt;Hello, for the past few days I have struggled to embed a dashboard (not report) in AppOwnsData mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with embedding a report, which went smoothly. I used the example code available here:&amp;nbsp; &lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers/AppOwnsData" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers/AppOwnsData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The only issue I had was with the RLS and having to add an additional "identity" parameter to the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later I created similar functions for retrieving dashboard embed token following the documentation.&lt;/P&gt;&lt;P&gt;First I send а request to list all pinned dashboards in the given workspace (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboards)" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboards)&lt;/A&gt;. From that, I get dashboard id, name, and embed Url (which are also available in PowerBI service under share)&lt;/P&gt;&lt;P&gt;Second I used the dashboard id, dataset id, group id, and effective identity to generate an embed token (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup)" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup)&lt;/A&gt;. So far so good, I was able to get an embed token for all pinned dashboards in my workspace.&lt;/P&gt;&lt;P&gt;However, I am not able to display the dashboards in the web app. I thought I made some mistake in code when displaying it, so I&amp;nbsp; tried in the dashboard sample Playground (&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html)" target="_blank" rel="noopener"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html)&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I supplied the embed token, dashboard id, and embed URL to the playground.&lt;/P&gt;&lt;P&gt;What I got in return was the same error ( "message": "Dashboard Embed: Fail to initialize - Could not initialize dashboard").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can supply code, but I don't think it is necessary, since I am getting a valid response from the PowerBI API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions on what might be going wrong? Why is the dashboard embed token not working?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also how can I check the request id for more info (requestid: f5aed91c-5935-4e0a-a224-1f5ccf24a97f) ?&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;(&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup)" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 08:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embed-Dashboard-in-AppOwnsData-mode/m-p/1792155#M29064</guid>
      <dc:creator>Gergan</dc:creator>
      <dc:date>2021-04-19T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Embed Dashboard in AppOwnsData mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embed-Dashboard-in-AppOwnsData-mode/m-p/1796239#M29096</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/296699"&gt;@Gergan&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'd like to suggest you check the prerequisite step of embed if you did not correct config these permissions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/register-app?tabs=customers%2CAzure" target="_self"&gt;Register an Azure AD application to use with Power BI&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, how did your security group and workspace configured? Can you please share more detail?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_self"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 01:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embed-Dashboard-in-AppOwnsData-mode/m-p/1796239#M29096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-21T01:27:47Z</dc:date>
    </item>
  </channel>
</rss>

