Migrate power bi collection to power bi embedded

+2 votes

I tried to follow the article to migrate power bi collection to power bi embedded using this article, but got stuck.

For example, in our app, we use these nuget packages (Microsoft.PowerBI.Api and powerbi.core), and these are some of our usages:

client.Reports.GetReportsAsync(this.workspaceCollection, this.workspaceId)
client.Reports.DeleteReportAsync(this.workspaceCollection, this.workspaceId, report.Id);
client.Imports.PostImportFileWithHttpMessage(this.workspaceCollection,this.workspaceId,File.OpenRead(localPath), "Main Report");
client.Datasets.GetGatewayDatasourcesAsync(workspaceCollection, workspaceId, dataset.Id);
client.Datasets.GetDatasetsAsync(workspaceCollection, workspaceId);

I can download all reports and move to power BI embedded, but as workspace collection will be retired, will we still be able to use above methods? If not, are there any alternative functions to use?

Sep 18, 2018 in Power BI by lina
• 8,100 points

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Best answer

I agree with Kalgi, this method is not used anymore. You can call the REST API instaed. 

REST API: It's a REST-based API that provides programmatic access to Dashboard resources such as DatasetsTables, and Rows in Power BI. It provides service endpoints for embedding, administration, and user resources.

The Power BI REST API has the following operations:

  • Dataset operations: Get and create Datasets.
  • Table operations: Get Tables and update Table schema.
  • Row operations: Add Rows and Delete Rows.
  • Group operations: Get Groups.
answered Oct 11, 2018 by Hannah
• 14,080 points

selected Oct 11, 2018 by Kalgi
0 votes

This method cannot be used anymore,

You can use the REST API instead, its very similar and efficient.

To learn more about power bi REST API follow this link.

answered Sep 18, 2018 by Kalgi
• 36,340 points

Related Questions In Power BI

0 votes
1 answer

Passing a parameter to Power BI Embedded via embedded URL

Add the following to the end of ...READ MORE

answered Oct 23, 2018 in Power BI by Annie97
• 2,190 points
0 votes
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 21, 2018 in Power BI by nirvana
• 3,060 points
0 votes
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 36,340 points
0 votes
2 answers

Passing parameters to Power BI filter programmatically

In addition to @Kalgi's answer, there's another ...READ MORE

answered Sep 19, 2018 in Power BI by Nilesh
• 6,900 points
0 votes
1 answer
0 votes
1 answer

using Release Definition REST API for VSTS

Try using this: $vstsAccount = "[your vsts name]" $user ...READ MORE

answered Jul 24, 2018 in Other DevOps Questions by ajs3033
• 7,080 points
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
0 votes
1 answer
0 votes
1 answer

Is it possible to manage limits while using dedicated capacity power bi embedded app service?

These limits are not related to using ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 14,080 points
0 votes
1 answer

Is there a way to convert JSON data to readable table in power bi

Follow these steps step 1 - Click on ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 14,080 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.