Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Call Power BI Rest API from Power BI Desktop



Would really love to see this works since i cant even think about all the possibilities. 


Is it possible to call Power BI REST API from Power BI desktop? 

I am creating admin documentation and listing all datasets within my tenant and want to join these to used Gateways. I dont want to list all manually since there are around 40 Gateways and a couple of hundred datasets.

My test was to create a function in Power BI desktop which retrieves Gateway ID from my list of datasetID from Power BI REST API -


BUT, it dont allow access when i try to invoke the function over the table of datasetIDs, 



Is there something else handy i could do to get all of this information? Or am i thinking about this completly wrong? have googled alot but nothing unfortunatly so now i turn to the almighty community.


All the best



Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Kudoed Authors