Dear team,
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.
Powe BI Implementation.
We created Power BI account and hard coded credentials at the code level. We able to authenticate account with tokens at the application level.
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.
Based on URL we are connecting to the group and populating reports at Web app level.
Am I doing right way?
The critical issue.
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.
client.Datasets.SetAllDatasetConnectionsAsync(DatasetID, ProdutionDBConnectionString).Result
This method not working at all, but every time we are getting success result.
Currently, we manually changing the connection strings through the Power BI portal after the importing the PBIX files.
Please help me how to resolve this issue?
Thanks & Regards,
Phanindra B.