The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello all,
I'm using the Power BI API. Documentation here: Reports - Get Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
I have the group id and report id. URL: GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/datasources
This is the error it returns:
{
"error": {
"code": "InvalidRequest",
"message": "GetReportDatasources is supported only for RDL reports"
}
}
This is for a Power BI report. How can I determine the datasource?
Solved! Go to Solution.
Hi,
This API is just for Paginated reports (rdl) because Then the source is stored in the report.
I dont think this is relevant for regular power bi reports because this does not contain Any sources. Then you should use the dataset/source api instead:
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group
Or do you use live connection to Shared dataset and want to know which dataset the report is connected to?
Br
Marius 🙂
Hi,
If you think my answer provided some kind of a soulition, please consider accepting it as soulition and click the button. I also greatly appreciate if you give me a kudos 🙂
Br
Marius
Hi,
This API is just for Paginated reports (rdl) because Then the source is stored in the report.
I dont think this is relevant for regular power bi reports because this does not contain Any sources. Then you should use the dataset/source api instead:
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group
Or do you use live connection to Shared dataset and want to know which dataset the report is connected to?
Br
Marius 🙂
User | Count |
---|---|
5 | |
3 | |
3 | |
2 | |
1 |
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |