Forum Discussion
Embedding Scorecards for Customers
Hello team,
Has anyone ever managed to embed a scorecard successfully using the API and Client Credentials?
I have managed to create and embed a report using an Azure AD App, using ClientID and Secret by following the PowerBI-Developer-Samples GitHub repo for Python and with utilisation client credentials.
I have noticed differences between the embedURL for reports and scorecards returned via the API response.
Using Postman, i can successfully get a responce by calling the scorecard API: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/scorecards/{scorecard_id}. The embedURL for scorecards doesn't include the groupid and config parameters as the report embedURL does.
I continously get 403 and 401 errors. I have checked AzureAD app permissions, PowerBI workspace permissions etc and I am certain that everything is configured as it should be. From the response i get the reportID, datasetID and workspaceID used by the scorecard and the AzureAD app has access to all of them.
If someone has any documentation or a working solution that they can share will be much appreciated.
Regards,
George
1 Reply
- gkarapalidisNew Member
I've also tried to create a report and use the metrics visual to add the scorecard in the report and embed that instead of the scorecard, and i get exactly the same issues.
I don't understand what I potentially do wrong, or why it's so tricky to embed.
Once again, any support will be greatly appreciated.