Forum Discussion
kasiaw29
5 years agoResolver II
Connecting to REST API - Trouble authenticating
Hi community, I'm trying to connect to some REST API's to get data on my PowerBI Workspaces activity in order to get Usage Metrics but per whole real estate. I'm using a function that gets a re...
Anonymous
5 years agoNot applicable
Hi kasiaw29
I have a test on your access token code, it works well.
I think you meet problem when you use this token to get result in your workspace code. You can try to use Web connector to connect to your Group API and then change the access token to dynamic in Advance Editor.
For more details, you may refer to this video and you can try the way in this video to get access token too.
Video: Call Power BI Rest API with Dynamic Access Token From Power BI Desktop
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kasiaw29
4 years agoResolver II
Hi just getting back to this. It's exactly what I have in my query for workspaces, still doesn't work.