Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
D_Lav
Helper I
Helper I

Call Power BI Rest API from Power BI Desktop

Hi, 

 

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 - https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources

 

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

PBIRest.PNG

 

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

/D

0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.