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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.