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
arijsiddiqui
Regular Visitor

GetTables Rest API not returning rows/columns

Hi,

I have created a push dataset using an API i.e "https://docs.microsoft.com/en-gb/rest/api/power-bi/pushdatasets/datasets_postdataset" and then added some rows using this API "https://docs.microsoft.com/en-gb/rest/api/power-bi/pushdatasets/datasets_postrows" 

 

Now, when I am trying to get the tables using an API "https://docs.microsoft.com/en-gb/rest/api/power-bi/pushdatasets/datasets_gettables" it's only returning the name of the table, even it should return the columns and data.

 

Can you pls guide me about this behaviour, is there anyway to get the data in side a table or how can i get 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

The documentation states: "Returns a list of tables tables within the specified dataset" .  It does not claim to return the contents anywhere.

 

However - you can connect to the dataset with an XMLA client of your choice and get the table contents from there.

lbendlin_0-1618344082564.png

 

 

View solution in original post

9 REPLIES 9
adilraza
New Member

Thankyou for your response.

https://learn.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-get-tables#table but in that document it mentions that its response is array of Table, and Table it self is an object which contains rows and columns as property.

lbendlin
Super User
Super User

The documentation states: "Returns a list of tables tables within the specified dataset" .  It does not claim to return the contents anywhere.

 

However - you can connect to the dataset with an XMLA client of your choice and get the table contents from there.

lbendlin_0-1618344082564.png

 

 

@lbendlin can you elaborate what are you trying to say, i am also having this sort of issue.

"Get Tables" only returns the table names 

Is there any way to get record pushed into push dataset, i want to take backup in case there is a need to update dataset.

Not sure I understand.  You can push rows, and you can query the dataset.  What you cannot do is "update the dataset". 

Well there is a case in which I want to update the dataset, and get the record of that dataset and create backup of it. That why I am trying to get the rows of that dataset. But API is not returning any thing apart from table name.

 

there is a case in which I want to update the dataset

 

You cannot do that. If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com/?forum=2d80fd4a-16cb-4189-896b-e0dac5e08b41

Really appreciated.

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.