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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.