Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
njrandell
Helper I
Helper I

Create workspace in Power BI Embedded using Rest API

I'm working on a solution for a customer. Currently we build reports in desktop, publish to a group and then update the app.

 

More recently I've got the import working via the API, so I can import the pbix, upload to multiple workspaces, modify parameters on the dataset for each specific workspace and then refresh the dataset.

 

However when I upload a new report, I want to be able to update the app with the new report. Is there any way of doing this via the API?

 

4 REPLIES 4
Anonymous
Not applicable

Hi @njrandell,

 

when you upload the report and import it in a app workspace (group) in PBI Service, you can get the id of the imported report.

Then, using the REST API for reports you can get the report with the report you've just imported.

 

Hope it helps,

 

Thanos

I know that bit, but is there a way I can update the app? From the web site I can add a report into an app and then update the app, but could not see a way to do this via the api.

Anonymous
Not applicable

Hi @njrandell,

 

Sorry, probably you're talking about updating a PowerBI App and not a usual web app. 

AFAIK there's no way to simulate the button "Update App" of the PowerBI service with a rest api call or an sdk call. 

 

If you would like to go the other way (web app), you can start by something like this.

Also I have written a blog post about templating in a multitenant environment if you'd like to give it a look.

 

Hope it helps.

 

Regards,

 

Thanos

Thanks for that. It's pretty much what I thought. Hopefully the API will be udpated soon to add in more functionality around managing Power BI Apps.

 

I've already got the embedded links working.

 

BTW- just read your blog post and it describes almost exactly what I'm doing! Good to see similar thinking.

 

Nick

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.