<?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 Sharing a PowerBI Report for Embedding JS API in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Sharing-a-PowerBI-Report-for-Embedding-JS-API/m-p/622631#M9581</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in microsoft technologies and I am trying to embed my reports in a web application.&lt;/P&gt;&lt;P&gt;As far as I understood reading the documentation it pass through&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create and retrieve a token from a Registered Application in my AAD (what I did and I am able to retrieve a token)&lt;/P&gt;&lt;P&gt;Application was created and full access to Power BI service has been granted.&lt;BR /&gt;I also created a key I used to retrieve the token&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use Javascript PBI SDK to retrieve my report following the wiki&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably missed something in my object declaration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var config = {
        type: 'report',
        tokenType: models.TokenType.accessToken,
        accessToken: {access_token},
        embedUrl: {url},
        id: {report_id},
        permissions: permissions,
        settings: {
          filterPaneEnabled: true,
          navContentPaneEnabled: true
        }
      };&lt;/PRE&gt;&lt;P&gt;Can you please confirm with me some points ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;access token is the token I retrieved from my&amp;nbsp;AAD created app&lt;/LI&gt;&lt;LI&gt;url is the one I see when I look at my report in my pbi web interface :&amp;nbsp;&lt;A href="https://app.powerbi.com/groups/xxxxxxxx/reports/yyyyyyyyy/" target="_blank"&gt;https://app.powerbi.com/groups/xxxxxxxx/reports/yyyyyyyyy/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;report id is the&amp;nbsp;&lt;SPAN&gt;yyyyyyyyy of my url&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Maybe I forgot an abvious step so do not hesitate to comment please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 13:23:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-13T13:23:53Z</dc:date>
    <item>
      <title>Sharing a PowerBI Report for Embedding JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Sharing-a-PowerBI-Report-for-Embedding-JS-API/m-p/622631#M9581</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in microsoft technologies and I am trying to embed my reports in a web application.&lt;/P&gt;&lt;P&gt;As far as I understood reading the documentation it pass through&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create and retrieve a token from a Registered Application in my AAD (what I did and I am able to retrieve a token)&lt;/P&gt;&lt;P&gt;Application was created and full access to Power BI service has been granted.&lt;BR /&gt;I also created a key I used to retrieve the token&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use Javascript PBI SDK to retrieve my report following the wiki&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably missed something in my object declaration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var config = {
        type: 'report',
        tokenType: models.TokenType.accessToken,
        accessToken: {access_token},
        embedUrl: {url},
        id: {report_id},
        permissions: permissions,
        settings: {
          filterPaneEnabled: true,
          navContentPaneEnabled: true
        }
      };&lt;/PRE&gt;&lt;P&gt;Can you please confirm with me some points ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;access token is the token I retrieved from my&amp;nbsp;AAD created app&lt;/LI&gt;&lt;LI&gt;url is the one I see when I look at my report in my pbi web interface :&amp;nbsp;&lt;A href="https://app.powerbi.com/groups/xxxxxxxx/reports/yyyyyyyyy/" target="_blank"&gt;https://app.powerbi.com/groups/xxxxxxxx/reports/yyyyyyyyy/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;report id is the&amp;nbsp;&lt;SPAN&gt;yyyyyyyyy of my url&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Maybe I forgot an abvious step so do not hesitate to comment please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 13:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Sharing-a-PowerBI-Report-for-Embedding-JS-API/m-p/622631#M9581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-13T13:23:53Z</dc:date>
    </item>
  </channel>
</rss>

