<?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: Power BI embed sample in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123153#M4255</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/8765"&gt;@tringuyenminh92&lt;/a&gt;&lt;/P&gt;&lt;P&gt;hi, thank you!&lt;/P&gt;&lt;P&gt;i've created a workspace, i just don't understand\know how to import a power bi into this workspace.&lt;/P&gt;&lt;P&gt;can you please help me?&lt;/P&gt;&lt;P&gt;i know i can make it with the provision sample but i can't build this soloution so it doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 10:42:46 GMT</pubDate>
    <dc:creator>MP_123</dc:creator>
    <dc:date>2017-02-06T10:42:46Z</dc:date>
    <item>
      <title>Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/122903#M4235</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i'm trying to follow &lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-get-started-sample" target="_self"&gt;these&lt;/A&gt; instruction in order to try the power bi embed feature.&lt;/P&gt;&lt;P&gt;i;m stuck on trying to build &amp;amp; run this &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;has someone succeeded?&lt;/P&gt;&lt;P&gt;the build is with a lot of errors that blocking me from running the console app.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 12:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/122903#M4235</guid>
      <dc:creator>MP_123</dc:creator>
      <dc:date>2017-02-05T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/122920#M4242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/7802"&gt;@MP_123&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To have basic sample, you could follow up some topics as i mentioned in &lt;A href="https://community.fabric.microsoft.com/t5/Integrations-with-Files-and/Integrating-power-bi-reports-to-application-using-Second-method/td-p/114502" target="_blank"&gt;this topic:&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A title="" href="https://github.com/Microsoft/PowerBI-Cli" target="_blank" rel="nofollow noopener noreferrer"&gt;Power BI Cli&lt;/A&gt;&amp;nbsp;to generate some workspace/importing report by command (interactive with your azure account)&lt;/LI&gt;&lt;LI&gt;&lt;A title="" href="https://github.com/Microsoft/PowerBI-JavaScript/wiki" target="_blank" rel="nofollow noopener noreferrer"&gt;Basic steps to integrate&amp;nbsp;&lt;/A&gt;with js and demo site&lt;/LI&gt;&lt;LI&gt;In case you want to extend expiration of embed token or something else, you could use&amp;nbsp;&lt;A title="" href="https://github.com/Microsoft/PowerBI-CSharp" target="_blank" rel="nofollow noopener noreferrer"&gt;Power BI API for .NET&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 14:02:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/122920#M4242</guid>
      <dc:creator>tringuyenminh92</dc:creator>
      <dc:date>2017-02-05T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123022#M4246</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/7802"&gt;@MP_123&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I‘ve followed the same instruction and it proves working. Whenever&amp;nbsp;any error occurs, you can post the steps where it occurs and the detailed error message so that we can help.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 03:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123022#M4246</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-02-06T03:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123153#M4255</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/8765"&gt;@tringuyenminh92&lt;/a&gt;&lt;/P&gt;&lt;P&gt;hi, thank you!&lt;/P&gt;&lt;P&gt;i've created a workspace, i just don't understand\know how to import a power bi into this workspace.&lt;/P&gt;&lt;P&gt;can you please help me?&lt;/P&gt;&lt;P&gt;i know i can make it with the provision sample but i can't build this soloution so it doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 10:42:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123153#M4255</guid>
      <dc:creator>MP_123</dc:creator>
      <dc:date>2017-02-06T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123170#M4257</link>
      <description>&lt;P&gt;these are the errors i get when trying to build the solution:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="build.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/28492i7A4E9BEF126899EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="build.PNG" alt="build.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then when trying to run the provision console app&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run.PNG" style="width: 481px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/28493i3E0B00DDA9F80206/image-size/large?v=v2&amp;amp;px=999" role="button" title="run.PNG" alt="run.PNG" /&gt;&lt;/span&gt;(the file is exist)&lt;/P&gt;&lt;P&gt;please someone can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:17:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123170#M4257</guid>
      <dc:creator>MP_123</dc:creator>
      <dc:date>2017-02-06T11:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI embed sample</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123220#M4261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/7802"&gt;@MP_123&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't use that sample project, so if you have read topic of powerbi cli, i will assume that you have&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;created 1 workspace collection in your Azure account &amp;nbsp;=&amp;gt; (had accesskey of workspace collection)&lt;/LI&gt;&lt;LI&gt;created 1 workspace in that workspace collection =&amp;gt; (had workspaceid)&lt;/LI&gt;&lt;LI&gt;imported 1 report to that workspace =&amp;gt; (had reportid)&lt;/LI&gt;&lt;LI&gt;had access token of report&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;create-embed-token

Creates a Power BI embed app token

powerbi create-embed-token -c &amp;lt;collection&amp;gt; -k &amp;lt;accessKey&amp;gt; -w &amp;lt;workspaceId&amp;gt; -r &amp;lt;reportId&amp;gt;&lt;/PRE&gt;&lt;P&gt;So now you could create one empty web project -&amp;gt; add index.html file as view and follow &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki" target="_self"&gt;topic in second line&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In view: &amp;nbsp;(you could replace ng-click by onclick if you are using javscript instead of angularjs)&lt;/P&gt;&lt;PRE&gt; &amp;lt;h2&amp;gt;&amp;lt;button class="label label-success" ng-click="showReport()"&amp;gt;Basic Embed Report&amp;lt;/button&amp;gt;&amp;lt;/h2&amp;gt;
                &amp;lt;div id="reportContainer" class="flex"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;In your js file:&lt;/P&gt;&lt;PRE&gt;  $scope.config = {
        workspaceCollection: 'pbiwchols', // your workspace collection name
        workspaceId: 'f1af7361-f57f-4c80-81a7-', 
        reportId: '9bfcfa5a-5220-4919-b86b-fe',
        type: 'report',
        accessToken: 'removed',
        embedUrl: 'https://embedded.powerbi.com/appTokenReportEmbed',
        id: '9bfcfa5a-5220-4919-b86b-fe90bcc6c03a',
        settings: {
            filterPaneEnabled: false,
            navContentPaneEnabled: true
        }
    };

    $scope.showReport = function () {

        // Grab the reference to the div HTML element that will host the report.
        $scope.reportContainer = angular.element('#reportContainer')[0];

        // Embed the report and display it within the div container.
        $scope.report = powerbi.embed(reportContainer, $scope.config);

        // Report.off removes a given event handler if it exists.
        $scope.report.off("loaded");

        // Report.on will add an event handler which prints to Log window.
        $scope.report.on("loaded", function (event) { });
        // Report.on will add an event handler which prints to Log window.
        $scope.report.on("pageChanged", function (event) { });
        //handling error event
        $scope.report.on("error", function (event) { });

    };&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2017-02-06 21.12.52.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/28500iABF20535CA72A357/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2017-02-06 21.12.52.png" alt="Screenshot 2017-02-06 21.12.52.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For details, please follow topic&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-embed-sample/m-p/123220#M4261</guid>
      <dc:creator>tringuyenminh92</dc:creator>
      <dc:date>2017-02-06T14:18:22Z</dc:date>
    </item>
  </channel>
</rss>

