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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
fer_vd
Frequent Visitor

Embed Group Report Api Tutorial

Hi, I tried to embed a report within a group in a webapp, but I don't get it to work.

I used the tutorial from this link: https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/

and it works perfectly for reports within my workspace.

The tutorial even gave hints how to embed a report in a group in the comments:

// when using a report in a group, you must provide the groupId on the iFrame SRC

But I still don't get it too work. I am getting the following error: "External server returned an error (401): Unauthorized"

I have registered my app as shown in the example, but checked all the permission checkboxes.

Anyone got a clue how to get the report inside a group?

1 ACCEPTED SOLUTION

Thanks for your reply. I just got it working a few moments ago. I dont know why but this solved it for me:

- Go into Power Bi desktop.

- Clear the cache.

- Publish again.

 

I've put the groupId hardcoded though. But it should not be a problem to make this variable.

 

cheers

Fer

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@fer_vd, It seems to work by new Power BI JavaScript API. You may take a look at https://github.com/Microsoft/PowerBI-JavaScript/issues/57.
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your reply. I just got it working a few moments ago. I dont know why but this solved it for me:

- Go into Power Bi desktop.

- Clear the cache.

- Publish again.

 

I've put the groupId hardcoded though. But it should not be a problem to make this variable.

 

cheers

Fer

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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