Forum Discussion
Embed Group Reports or Tiles
Hey,
I'm working on integrating Reports with Power BI Embedded and the REST API. I already manages to embed MY reports and tiles and i know i can also get groups where i'm in, but how can I embed Reports from a group? Is that possible?
Thanks in advance.
7 Replies
- ankitpatiraCommunity Champion
NerdFlanders With Power BI Embedded you import pbix file into your azure workspace. So I don't think you need to do anything with group workspaces of power bi service. You simply need pbix file for each report and publish them to your azure workspace unless I've misunderstood you.
- NerdFlandersAdvocate I
No, there are two, let's say versions, of power bi embedded, the one you explained and there is one there you can access reports, dashboards and tiles directly in your workspace with REST API, so you can embed even single tiles on a website. There you also can get your groups, see at Apiary.
I'm wandering why there is a function to get my groups if I can't get any reports from there, or can i?
- NerdFlandersAdvocate I
I found it out by myself:
simply add groups/<groupid>/ to you base uri https://api.powerbi.com/beta/myorg/
If not you'll only get the reports, dashboards and tiles from your own workspace, but if you organize your reports by topic in different groups its neccessary to get reports from there aswell.
- lfrancfortFrequent Visitor
NerdFlanders : I have the same issue and read the same page, but I didn't understand what they tell by :
// when using a report in a group, you must provide the groupId on the iFrame SRC
Can you give me the line of code where "you provide the groupID on the iframe SRC" ?
Thank you,
Laurent
- NerdFlandersAdvocate I
lfrancfort : The exact embed URL I'm using looks like that:
https://app.powerbi.com/reportEmbed?reportId=< your report ID >&groupId=< your group ID >
actually we managed it to embed any report to SharePoint with pasting simple JavaScript code into the SharePoint site and made this Iframe responsive to the window size.
So no C# code or WebParts oder anything additional
- lfrancfortFrequent Visitor
Thank you very much, I didn't understand what they meant by "provide the groupid".
Laurent