Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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-msft's avatar
    V-lianl-msft
    Community 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.

    • Anonymous's avatar
      Anonymous
      Not 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

    • dvgz's avatar
      dvgz
      New Member

      That's not the issue AT ALL. On the IPaginatedReportLoadConfiguration object there is no "embedUrl" property. That's the issue.

  • I have the same problem in my project. TypeScript model is different from this example.