Forum Discussion

lucadelicio's avatar
lucadelicio
Impactful Individual
2 years ago
Solved

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