<?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 Power BI Embedded with Multi tenant web application in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/231707#M7318</link>
    <description>&lt;P&gt;Dear team,&lt;BR /&gt;We recently integrated power BI Embedded with one of our product. The application is Asp.net webforms, multi tenant web application. which is hosted in Azure. Codes are common for all customers but databases will be different for each customer. based on URL we are connecting to the respective database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Powe BI Implementation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We created Power BI account and hard coded credentials at the code level. We able to authenticate account with tokens at the application level.&lt;/P&gt;&lt;P&gt;We created a group for each customer. Each group has the same set of reports but data source connection will be different, data source connection is pointing to the respective customer database.&lt;BR /&gt;Based on URL we are connecting to the group and populating reports at Web app level.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Am I doing right way?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The critical issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We created a PBIX which uses a Direct Query to a SQL Azure development database. To change database connection string from Dev environment to production environment, we tried Power BI embedded SDK predefined method.&lt;BR /&gt;client.Datasets.SetAllDatasetConnectionsAsync(DatasetID, ProdutionDBConnectionString).Result&lt;BR /&gt;This method not working at all, but every time we are getting success result.&lt;BR /&gt;Currently, we manually changing the connection strings through the Power BI portal after the importing the PBIX files.&lt;/P&gt;&lt;P&gt;Please help me how to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Phanindra B.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 15:00:31 GMT</pubDate>
    <dc:creator>Phanindra208</dc:creator>
    <dc:date>2017-08-15T15:00:31Z</dc:date>
    <item>
      <title>Power BI Embedded with Multi tenant web application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/231707#M7318</link>
      <description>&lt;P&gt;Dear team,&lt;BR /&gt;We recently integrated power BI Embedded with one of our product. The application is Asp.net webforms, multi tenant web application. which is hosted in Azure. Codes are common for all customers but databases will be different for each customer. based on URL we are connecting to the respective database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Powe BI Implementation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We created Power BI account and hard coded credentials at the code level. We able to authenticate account with tokens at the application level.&lt;/P&gt;&lt;P&gt;We created a group for each customer. Each group has the same set of reports but data source connection will be different, data source connection is pointing to the respective customer database.&lt;BR /&gt;Based on URL we are connecting to the group and populating reports at Web app level.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Am I doing right way?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The critical issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We created a PBIX which uses a Direct Query to a SQL Azure development database. To change database connection string from Dev environment to production environment, we tried Power BI embedded SDK predefined method.&lt;BR /&gt;client.Datasets.SetAllDatasetConnectionsAsync(DatasetID, ProdutionDBConnectionString).Result&lt;BR /&gt;This method not working at all, but every time we are getting success result.&lt;BR /&gt;Currently, we manually changing the connection strings through the Power BI portal after the importing the PBIX files.&lt;/P&gt;&lt;P&gt;Please help me how to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Phanindra B.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/231707#M7318</guid>
      <dc:creator>Phanindra208</dc:creator>
      <dc:date>2017-08-15T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded with Multi tenant web application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/232300#M7326</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/39177"&gt;@Phanindra208&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear team,&lt;BR /&gt;We recently integrated power BI Embedded with one of our product. The application is Asp.net webforms, multi tenant web application. which is hosted in Azure. Codes are common for all customers but databases will be different for each customer. based on URL we are connecting to the respective database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Powe BI Implementation.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We created Power BI account and &lt;STRONG&gt;hard coded credentials&lt;/STRONG&gt; at the code level. We able to authenticate account with tokens at the application level.&lt;/P&gt;
&lt;P&gt;We created a group for each customer. Each group has the same set of reports but data source connection will be different, data source connection is pointing to the respective customer database.&lt;BR /&gt;Based on URL we are connecting to the group and populating reports at Web app level.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Am I doing right way?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The critical issue.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We created a PBIX which uses a Direct Query to a SQL Azure development database. To change database connection string from Dev environment to production environment, we tried Power BI embedded SDK predefined method.&lt;BR /&gt;client.Datasets.SetAllDatasetConnectionsAsync(DatasetID, ProdutionDBConnectionString).Result&lt;BR /&gt;This method not working at all, but every time we are getting success result.&lt;BR /&gt;Currently, we manually changing the connection strings through the Power BI portal after the importing the PBIX files.&lt;/P&gt;
&lt;P&gt;Please help me how to resolve this issue?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Phanindra B.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/39177"&gt;@Phanindra208&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I don't think you should hard coded credentials. Since you mentioned that you created groups for individual customers so I think that your customers all have pro license and you're following &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding/#embedding-with-power-bi-users-users-own-data" target="_self"&gt;Embed with Power BI users&lt;/A&gt;? In this case, people shall login individually to see the embedded reports. I may have license concern for the hard coded credentials and the &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-rls/" target="_self"&gt;RLS&lt;/A&gt; doesn't effect as all costomers login with the same hard coded credentials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;SetAllDatasetConnectionsAsync shall work, before you debugding, can your try to call the REST API&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-US/library/mt748181.aspx" target="_self"&gt;Set All Connections&lt;/A&gt;(here's a quick tool &lt;A href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en" target="_self"&gt;postman&lt;/A&gt;)? I think the method underlying is calling this API.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 09:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/232300#M7326</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-16T09:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded with Multi tenant web application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/301189#M8854</link>
      <description>&lt;P&gt;We are trying to integrate Power BI dashboard into Webforms Application. Can you please share some URL's or pointers that i can use to accomplish this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is very much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 23:07:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-with-Multi-tenant-web-application/m-p/301189#M8854</guid>
      <dc:creator>vemulapalli26</dc:creator>
      <dc:date>2017-11-10T23:07:20Z</dc:date>
    </item>
  </channel>
</rss>

