microsoft / powerbi-client-angular

Power BI Angular component. This library lets you embed Power BI report, dashboard, dashboard tile, report visual, or Q&A in your Angular application.
Other
131 stars 63 forks source link

API Demo is Stopped #70

Open DiegoOrozcoMO opened 2 weeks ago

DiegoOrozcoMO commented 2 weeks ago

When is run the demo, it doesn't work because the api "https://aka.ms/CaptureViewsReportEmbedConfig" is stopped 💔

Screenshot 2024-09-04 at 4 39 54 PM Screenshot 2024-09-04 at 4 38 47 PM

Help pls :)

v-MadhavC commented 1 week ago

Thank you for reporting this issue. We identified the root cause of the issue and will add it to our backlog.

Follow below steps as a workaround:

  1. Remove the selected code from the embedReport method as shown in the screenshot. image

  2. Update the "accessToken" and "embedUrl" in the reportConfig to embed the report as shown in the image below. image

To generate the access token, use the following REST API: Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn

To generate the embed token, use the following REST API: Reports - Get Report In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn