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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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