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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.