Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Cheers to everyone in the community who has helped with everything so far.
I really need some directions on finding the necessary authentication credentials to embed a report within the new javascript API, as mentioned in posts by others@PaulFowler; I have found that the api documentation includes a detailed walk through of everything 'except the definition and set up of authentication credentials which is a pretty crucial part.
The sample here works brilliantly (I love that there is print options) and the code is straight forward. I know these are the variables I need: and this is my current situation on tracking them down.
Access token: virtually no idea where to find this, absolutely no clue
Type: "report"
ID: Comes from the workspace ID in Azure I think? eg "c52af8ab-0468-4165-92af-dc39858d66ad"
Name: I assume is just the name of the embedded report
WebURL & embedURL: I am hoping come from the same place in PBI service (File>Publish to web)
There may be something obvious that I am missing but I have now spent far too much time scratching my beard with no results.
Any responses will be highly appreciated.
Solved! Go to Solution.
No magic to get the token but in code.
To get access token for REST API, check Sample C# code to get access token, and get report.
To get access token for Power BI Emebeded, check this reply.
No magic to get the token but in code.
To get access token for REST API, check Sample C# code to get access token, and get report.
To get access token for Power BI Emebeded, check this reply.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
6 | |
2 | |
2 | |
2 |
User | Count |
---|---|
4 | |
4 | |
4 | |
4 | |
4 |