Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am successfully able to embed the reports in my application.
But at the time of phased loading, there seems to be an issue with load(). If I am using powerbi.load() and report.render() and trying to render Mobile Portrait layout of a report, report renders in landscape mode.
But as soon as I replace the powerbi.load() method with powerbi.embed(), same code renders the MobilePortrait view of the report.
Further, when I am trying to fetch particular pages after the report is fully rendered, I am unable to do so.
I am using get() to fetch the report from the embedded container. Then, using report.getId() I am fetching the Id of the embedded report. This seems to work fine.
But as soon as I call report.getPages(), unable to retrieve the list.
I did verify I am using the latest version of PowerBI-JavaScript API i.e. v2.5.1
Please suggest what might seems to be the issue here.
Hi @Sakshi,
1. Does the report have a phone optimized view? If so, please refer to desktop-create-phone-report#view-optimized-and-unoptimized-reports-on-a-phone. It could be the cause.
>>>In the mobile apps on phones, Power BI automatically detects optimized and unoptimized phone reports. If a phone-optimized report exists, the Power BI phone app automatically opens the report in phone report mode.
2. How did you use report.getPages() and show the result?
Best Regards,
Dale
Hi @v-jiascu-msft
Thanks for the reply.
1. My report does have the phone optimized view for all the pages, and I am trying to open it in portrait view on the mobile device without changing the orientation of the device. Still no luck.
2. I was using getPages() just to fetch the name of the pages. This seems to work now after I reinstalled the API of the same version.
Hello
I have a similiar problem using getPages(), the method respond me with a statusCode 200 but the body is empty. Do you have some idea about how solve this issue?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |