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
Phil_Seamark
Employee
Employee

Using Rest API to List Tables Group

I am trying to use the REST api to insert rows in a Table that resides in a Shared Workspace.

 

I can list all the groups I can see using:

 

https://api.PowerBI.com/v1.0/myorg/groups

 

And using the relavant groupid I can list the datasets using 

 

https://api.PowerBI.com/v1.0/myorg/groups/{mygroupid}/datasets

 

but if I try and see the tables in a specific group using 

 

https://api.PowerBI.com/v1.0/myorg/groups/{mygroupid}/datasets/{mydatasetid}/tables

 

I get a 501 error : "The remote server returned an error: (501) Not Implemented."

 

According to this documentation updated in Feb https://msdn.microsoft.com/en-us/library/mt203556.aspx it should work.

 

Is this method working for other people?

 

Cheers,

 

Phil


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

3 REPLIES 3
Phil_Seamark
Employee
Employee

Further to this, when I try to list tables under a dataset in My Workspace I get "GET tables method is not supported for this dataset" even using the Apiary API console.

 

Does the API only work with certain kinds of Datasets?  


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

I have since found that if I create the dataset using the API, I can list tables in the dataset (regardless of if in a shared workspace or not).

 

However my problem was when I created a table in Power BI Desktop and then published to the Service.  I can't list these tables.

 

So I have adjusted my code to create the dataset & table using the API and I can stream data into it.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

HI Phil:

 

I'm trying to get the app produced in a workspace and the users that has been granted access to it. Tried with rest get method:

 

$uri = "https://api.powerbi.com/v1.0/myorg/groups/$($group.id)/applications"

$uri = "https://api.powerbi.com/v1.0/myorg/groups/$($group.id)/apps"

 

Bur i'm getting

Invoke-RestMethod : The remote server returned an error: (404) Not Found.

Do you happen to know if there's a way to get the infor I'm trying to pull?

 

Many thanks in advance.

Leo.

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.