cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MaxSukholovyy
Regular Visitor

How to embed report from Power BI Report Server

Hi

I'm trying to embed Power BI reports in our ios application. Javascript & .net api works good with the online environment, I was able to create some custome objects like reports navigation and filter pannel (somethink like power bi ios app do). But when I am tring to embed the PBIRS report with javascript api, nothing happens. It is not working. I have tried with rs:embed=true parameter and with direct api link http://localhost:13526/powerbi/?id=0db851ec-b67b-4fe7-ad99-12424e4a2949.

 

 

 var config = {
                type: 'report',
                accessToken: '-',
                //embedUrl:'http://localhost:13526/powerbi/?id=0db851ec-b67b-4fe7-ad99-12424e4a2949',                
                embedUrl:'http://localhost:13526/reports/powerbi/Dashboard?rs:embed=true',
                id: '0db851ec-b67b-4fe7-ad99-12424e4a2949',
                settings: {
                    filterPaneEnabled: false,
                    navContentPaneEnabled: false,
                    layoutType: models.LayoutType.MobilePortrait
                },
                pageName: 'ReportSection4b3fbaa7dd7908d906d9'
            };

            var reportContainer = document.getElementById('reportContainer');

            var report = powerbi.embed(reportContainer, config);

 

 

Navigating the PBIRS reports with Power BI application seems that there is a way to communicate with report via javascript api (some objects are hidden, page navigation is not standard ecc), but I can't figure out how it works.

 

Analyzing the traffic, it seems that the application tries to access to this report server page:

 

http://localhost:13526/powerbi/mobile/index.html?disableClientTelemetry=true&explore=1&clientType=winApp&hostType=ioswk&isMobileReportsEnabled=1&isOnReportServer=1

 

(I think there is used ios web kit framework)

 

Does anyone know how and if it is possible to embed PBIRS reports in external web application?

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors