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
Razvan_Irimie
Frequent Visitor

DataSource Tables via api

I am trying to get the Table(s) from the datasource via api.  I was trying to query first the data source (which is a sharepointlist)

 however when i make the following call i get an error:

 

http://myreportserverreports/api/v2.0/PowerBIReports(Path='/Sfolder1/report1')/datasources - Get Method

Result:

 

 

{
  "@odata.context":"http://myreportserverreports/reports/api/v2.0/$metadata#DataSources","value":[
    {
      "Id":"2b0557f4-7a15-e811-80eb-005056813ac7","Name":null,"Description": ... etc.

I then make the following call: 

 

http://myreportserverreports/api/v2.0/PowerBIReports(Path='/Sfolder1/report1')/datasources(2b0557f4-7a15-e811-80eb-005056813ac7)

and i get the following resut:

 

{
  "error":{
    "code":"0","message":""
  }
}

My actual question is, can we get the tables used in the Report Query in Pbi Desktop via API, or at least some values so that we cna then use this to integrate the report into Sharepoint?  

0 REPLIES 0

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.