Created
November 9, 2021 20:30
-
-
Save StuffbyYuki/fbeb4bb8ca0e3bf5c8bdb04192c6e8fd to your computer and use it in GitHub Desktop.
Power Query - Get datasets in a workspace through PBI REST API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(group as text, token as text) => | |
let | |
Source = Json.Document(Web.Contents("https://api.powerbi.com/v1.0/myorg/", | |
[ | |
RelativePath = "/groups/" & group & "/datasets", | |
Headers=[Authorization="Bearer " & token] | |
] | |
)), | |
value = Source[value] | |
in | |
value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment