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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
weiyu_chen
Frequent Visitor

Can't get datasets info

Hi there,

 

When I run the following in Postman:

GET https://api.powerbi.com/v1.0/myorg/datasets

 

I got the following in response:

{
"value": []
}
 
There is no info on datasets' id and name, etc as in the doc: https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets
 
Could you please tell me what's wrong there?
 
Thanks!
 
PS:
If I run 
I can get all the info I need. I just need to get all the metadata in My Power BI API.
1 ACCEPTED SOLUTION
HaoZhan
New Member

Hi, I have the same problem.

In the end, I found that all these datasets are not under 'myspace' but a 'groupspace'.

Maybe, you can check it.

If you want to get the datasets under the group, you need to get the groupId first, and use this API

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

 

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

 

View solution in original post

12 REPLIES 12
HaoZhan
New Member

Hi, I have the same problem.

In the end, I found that all these datasets are not under 'myspace' but a 'groupspace'.

Maybe, you can check it.

If you want to get the datasets under the group, you need to get the groupId first, and use this API

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

 

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

 

Thanks a lot for the reply. I will check this out.

Best regards,

Weiyu

 

Anonymous
Not applicable

Hi @weiyu_chen,

Have you added any specific datasets to your workspace? I test on my side and this API works well.

Please share more detailed information to help us clarify your scenario and test to troubleshoot:

How to Get Your Question Answered Quickly  

Regards

Xiaoxin Sheng

@Anonymous Thanks for the reply. Yes, we have 7 datasets in the workspaces, 6 of them are Dynamics 365 related, 1 is from the How-to guides (https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-quickstart-learn-dax-basics), that's the Contoso Sales Sample for Power BI Desktop file. As you can see in the following sreenshot:

Screen Shot 2021-09-22 at 9.25.03 AM.png

Thanks,

Weiyu

Anonymous
Not applicable

Hi @weiyu_chen,

I suppose this issue may relate to that report(power bi rest api not has corresponded permissions to process on the guide report), perhaps you can try to remove that report and try again.

Regards,

Xiaoxin Sheng

Hi @Anonymous Thanks for the reply. I don't know what's the guide report. I didn't create any report, just connected to Sales Analytics for Dynamics 365 Sales and other Dynamics' datasets. Do you have any links on permission issues?

Thanks a lot,

Weiyu

Anonymous
Not applicable

Hi @weiyu_chen,

So you mean you are working with the template connector on the power bi service side? Have you tested to remove these specific contents from your workspace and try again?

Regards,

Xiaoxin Sheng

Hi @Anonymous,

No, I didn't try that, which one do you think is specific, I should remote. Indeed, the purpose of my test is using Power BI to access Dynamics' entities. 

Thanks!

Weiyu

Greg_Deckler
Community Champion
Community Champion

@weiyu_chen Maybe something up with permissions? Use the Try it feature here: Datasets - Get Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Docs.

Worked for me. Also, this worked in Powershell:

Invoke-PowerBIRestMethod -Url 'datasets' -Method Get



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

Thanks for the reply. I have tried `Try It`, get the same result as in postman:

Screen Shot 2021-09-16 at 5.00.00 PM.png

 

Thanks,

 

Weiyu

@weiyu_chen You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Thanks a lot. I will create a support ticket.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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