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.Gateways.PatchDatasourceAsync(workspaceCollection,workspaceId,datasources.Value[0].GatewayId,datasources.Value[0].Id,
delta);
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,220 points
1,491 views

2 answers to this question.

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 Datasets, Tables, 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.

Ready to elevate your data skills? Dive into our Power BI Course Content and embark on a transformative learning journey designed for data enthusiasts, analysts, and business intelligence professionals!
 

answered Oct 11, 2018 by Hannah
• 18,520 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
• 52,350 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,160 points
4,940 views
+2 votes
1 answer

How to export data to CSV from power bi embedded url ?

Hi Arathi, You can open Visuals from embedded ...READ MORE

answered Aug 23, 2019 in Power BI by anonymous
• 33,030 points
6,594 views
0 votes
1 answer

How to Get Power BI Embedded Report's Filters' Options

The getFilters function returns the current filters ...READ MORE

answered Feb 22, 2022 in Power BI by surbhi
• 3,820 points
2,778 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

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

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,722 views
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,300 points
1,252 views
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,130 points
1,310 views
0 votes
1 answer
+1 vote
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
• 18,520 points
704 views
+1 vote
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
• 18,520 points
13,994 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP