Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
When I called a Power BI Rest API via the try it page in the web site (https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin ),
Microsoft is generating a token that starts with:
Authorization: Bearer ey...
I need to call Power BI Rest APIs from a dataset/dataflow. For that reason I need to generate Authorization: Bearer token.
Which API should I call for generating this token?
Thanks
Hi @innocence84 ,
You can refer the following links to generate the token:
Permission tokens needed for embedding a Power BI app - Power BI | Microsoft Learn
Powershell method:
Note: Make sure you have installed the related modules: MicrosoftPowerBIMgmt.Profile before call the below command.
Get-PowerBIAccessToken (MicrosoftPowerBIMgmt.Profile) | Microsoft Learn
Get-PowerBIAccessToken
Postman method:
Solved: Power BI REST API using postman - generate embed t... - Microsoft Fabric Community
Access the Power BI Rest APIs using Postman - Helical IT Solutions Pvt Ltd (helicaltech.com)
Best Regards
Thank you.
We want to call the Power BI rest API from a Power BI data flow. So it's not an embedded app. We also want to call via Azure Active directory app registration instead of user/password. How can we call Power BI rest API from a dataflow by using app registration?
User | Count |
---|---|
5 | |
5 | |
3 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
4 | |
4 | |
4 |