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
135 stars 65 forks source link

API Demo is Stopped #70

Open DiegoOrozcoMO opened 2 months ago

DiegoOrozcoMO commented 2 months 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 2 months 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

pj-alvarado10 commented 1 week ago

Thank you. I have the same problem. Aka was the best option, but with the service stopped, we need to try directly with the workaround.

Edit: The access token needs a backend configuration, this option is not good for aka service or projects without backend.