Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey Community,
I had a question on the issues I am facing when Embedding a Report (not dashboard) in Dynamics 365.
Here is my strategy:
- I create a new dashboard in Dynamics and I create a new Web Resource within Dynamics to host the iframe.
- I then just display that iframe in the Dynamics Dashboard
I do not use the native Power BI integration because that only allows for Power BI dashboards and I need a full report in Dynamics.
The issues:
- The boards on the report within Dynamics are huge
- The report is not dynamically resizing when shifting from a large monitor to a laptop.
Here is my HTML code for the iframe:
<html><head><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta></head><body onfocusout="parent.setEmailRange();" data-new-gr-c-s-loaded="14.991.0" style="overflow-wrap: break-word;">
<iframe width="1600" height="670" src="https://app.powerbi.com/" frameborder="0" border-style="none" allowfullscreen="true"></iframe>
</body></html>
Also, I have attached some images. Please let me know if anyone has seen these issues or fixed them!
Best,
I still haven't found a great solution to this problem. The code below is what I have found works best:
<html><head><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta></head><body onfocusout="parent.setEmailRange();" data-new-gr-c-s-loaded="14.1007.0" style="overflow-wrap: break-word;">
<iframe src="YOURLINKHERE" onload="javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));" style="height:100%;width:100%;border:none;overflow:hidden;"></iframe>
</body></html>
Hi @Anonymous ,
See if this tool is helpful. It has helped me solve similar problems before
https://lukaszpawlowski-ms.github.io/Optimize-Publish-To-Web/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |