Forum Discussion
PowerBi-models do not match example for embedding paginated report
Hello:
Has anyone successfully worked on the example as shown https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/embed-paginated-report ? In the exmaple, it shows interface IPaginatedReportLoadConfiguration has embedUrl?: string; but when I check the model https://docs.microsoft.com/en-us/javascript/api/powerbi/powerbi-models/ipaginatedreportloadconfiguration , there is no embedUrl. DId the model change recently? How could you embed paginated report without embedUrl? Thanks
4 Replies
- V-lianl-msftCommunity Support
Hi Anonymous ,
Supposing that you know how to get the token and reportID from backend. In frontend,To get an valid embedurl in Power BI Embedded, you just concatenate "https://embedded.powerbi.com/appTokenReportEmbed?reportId=" and your reportID.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Liang:
That is Not what I had problem with. My problem is that IPaginatedReportLoadConfiguration does not have embedUrl field, so that I can't use that model for embedding with typescript+React in the frontend
- dvgzNew Member
That's not the issue AT ALL. On the IPaginatedReportLoadConfiguration object there is no "embedUrl" property. That's the issue.
- hektaNew Member
I have the same problem in my project. TypeScript model is different from this example.