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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

PowerBI datasets list to a table from rest api call

Hi Gurus,

I am trying to get the list of datasets into a PowerBI tabel. 

I use the below api generator to creat a api link

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasetsingroup#code-try-0

 

i put may parameter in the groupid and create below link( not full one for security purposes)

api request : 
GET https://api.powerbi.com/v1.0/myorg/groups/501a0a8a-6270-##$$2-9801-4964e#######/datasets

 

Then I copy the above link and creat below script in power query

let
Source = Json.Document(Web.Contents("https://api.powerbi.com/v1.0/myorg/groups/501a0a8a-6270-##$$2-9801-4964e#######/datasets"))
in
#"Source"

 

When I refresh I get below in the query editor. Can anyone plese help

 

apicall.PNG

 

 

 

 

 

 

 

 

3 REPLIES 3
amitchandak
Super User
Super User

Anonymous
Not applicable

Hi @amitchandak ,

 

I will try and let you know it this works and will accpect as a solutions. In the meantime if you have sometime you can direct me to more resources.

 

Thanks a lot champion 🙂

 

Anonymous
Not applicable

I am not a much of a techincal person to get hold of what is the code enviorment behind this, 

 

assumen that this is written in PowerQuery ??

 

var dashboards = await client.Dashboards.GetDashboardsInGroupAsync(GroupId);  (extracted from your pointed source @amitchandak 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.