Forum Discussion
Anonymous
7 years agoNot applicable
Sharing a PowerBI Report for Embedding JS API
Hi guys,
I am new in microsoft technologies and I am trying to embed my reports in a web application.
As far as I understood reading the documentation it pass through
1. Create and retrieve a token from a Registered Application in my AAD (what I did and I am able to retrieve a token)
Application was created and full access to Power BI service has been granted.
I also created a key I used to retrieve the token
2. Use Javascript PBI SDK to retrieve my report following the wiki https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics
I probably missed something in my object declaration
var config = {
type: 'report',
tokenType: models.TokenType.accessToken,
accessToken: {access_token},
embedUrl: {url},
id: {report_id},
permissions: permissions,
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};Can you please confirm with me some points ?
- access token is the token I retrieved from my AAD created app
- url is the one I see when I look at my report in my pbi web interface : https://app.powerbi.com/groups/xxxxxxxx/reports/yyyyyyyyy/
- report id is the yyyyyyyyy of my url
Maybe I forgot an abvious step so do not hesitate to comment please.
Regards
No Replies