<?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: Integrate Power BI report (deployed in service) in web app in Edit mode in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/180289#M5804</link>
    <description>&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not quite sure where you do this operation "&lt;SPAN&gt; I click on File -&amp;gt; Save option", could you be more specific with a snapshot?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 03:01:16 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-05-23T03:01:16Z</dc:date>
    <item>
      <title>Integrate Power BI report (deployed in service) in web app in Edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/169142#M5574</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to display a Power BI embedded report in Edit mode following the steps at&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-save-reports" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-save-reports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do similar activity using Power BI report deployed in service. I am able to integrate a Power BI report into web app following the steps at&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/&lt;/A&gt;. This opens the report in View mode. Please note that I have tried to used the settings used in Power BI embedded but it does not work with the report deployed in service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know of how I can integrate the Power BI report in Edit mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinayak&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 04:10:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/169142#M5574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T04:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Power BI report (deployed in service) in web app in Edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/170046#M5593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to display a Power BI embedded report in Edit mode following the steps at&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-save-reports" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-save-reports&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to do similar activity using Power BI report deployed in service. I am able to integrate a Power BI report into web app following the steps at&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/&lt;/A&gt;. This opens the report in View mode. Please note that I have tried to used the settings used in Power BI embedded but it does not work with the report deployed in service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know of how I can integrate the Power BI report in Edit mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vinayak&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;A simple demo is as below. For more completed demo, check &lt;A href="https://github.com/Microsoft/PowerBI-CSharp/tree/master/samples/webforms/embed-a-report-into-an-app" target="_self"&gt;embed-a-report-into-an-app&lt;/A&gt;&lt;STRONG class="final-path"&gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;
 
&amp;lt;script type="text/javascript"&amp;gt;
function clickToEmbeded(){
 
var token =   $('#accesstoken').val();
var embedUrl =  $('#embedUrl').val();


var embedConfiguration = {
    type: 'report',
	//replace your token here
    accessToken: token, 
	//replace your embedUrl here
    embedUrl: embedUrl 

}; 
 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);


}

&amp;lt;/script&amp;gt;
   Paste your access Token:  &amp;lt;input id='accesstoken' type="text" name="fname"&amp;gt;&amp;lt;br&amp;gt;
   Paste the embedUrl: &amp;lt;input id='embedUrl' type="text" name="lname"&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;button type="button" onclick="clickToEmbeded()" &amp;gt;  click me to embed &amp;lt;/button&amp;gt;
 
&amp;lt;div id="reportContainer" style="width:1600;height:900" &amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 05:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/170046#M5593</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-05T05:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Power BI report (deployed in service) in web app in Edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/173646#M5669</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try it out and let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinayak&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 04:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/173646#M5669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T04:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Power BI report (deployed in service) in web app in Edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/173739#M5672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to open the report deployed in service in Edit mode.&lt;/P&gt;&lt;P&gt;However when I click on File -&amp;gt; Save option, I am getting the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="infonav-dialogTitle"&gt;&lt;STRONG&gt;Something went wrong&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="infonav-dialogCloseIcon"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="infonav-dialogContent"&gt;&lt;DIV&gt;&lt;STRONG&gt;Unable to save the report&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Please verify you have the right permissions or contact support. If you contact support, please provide these details.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I believe this is because of the access token generated has 'Read' permission instead of 'Read Write' permission.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code to generate token is,&lt;/DIV&gt;&lt;DIV&gt;AuthenticationResult AR = AC.AcquireTokenByAuthorizationCode(code, new Uri(redirectUri), cc);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;which should be changed to generate Read-Write token.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code to generate Read - Write token in Embedded approach is&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, null, null, "Report.ReadWrite")&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please suggest.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Vinayak&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 May 2017 07:13:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/173739#M5672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T07:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Power BI report (deployed in service) in web app in Edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/180289#M5804</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not quite sure where you do this operation "&lt;SPAN&gt; I click on File -&amp;gt; Save option", could you be more specific with a snapshot?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 03:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrate-Power-BI-report-deployed-in-service-in-web-app-in-Edit/m-p/180289#M5804</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-23T03:01:16Z</dc:date>
    </item>
  </channel>
</rss>

