cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

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

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021