Forum Discussion
Show last dataset refresh
Hi everybody,
i'm trying to show the last dataset refresh throught a get request like MS Documentation
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history#completed-refresh-example
I'm using:
= let
Source = Web.Contents("https://api.powerbi.com/v1.0/myorg/datasets/id/refreshes")
in
Source
The errors that return power bi is:
Expression.Error: Access to the resource is forbidden.
Some idea to how autenticate on the request?
Thank you
Hello, lucadelicio ,
The Power BI REST API is not that simple to authenticate.You have to register an application in Azure first and then get secrets etc from it.
Here's how to do it.
https://www.sqlshack.com/how-to-access-power-bi-rest-apis-programmatically/
1 Reply
- vojtechsimaSuper User
Hello, lucadelicio ,
The Power BI REST API is not that simple to authenticate.You have to register an application in Azure first and then get secrets etc from it.
Here's how to do it.
https://www.sqlshack.com/how-to-access-power-bi-rest-apis-programmatically/