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
JojoPBI
New Member

PBI API - Retrieve the dataset ID of a paginated report

Hello,

 

Using the Power BI API, I'm trying to get the Dataset IDs of my dashboards and paginated reports, in order to get the schedule for those datasets. Paginated reports are using dahsboards Semantic Models as datasource.

For Dashboard, I'm simply using this endpoint : https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-reports-in-group

 

For Paginated Reports, I'm trying to use this endpoint : https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-datasources-in-group 

But I'm returned a AnalysisServices datasource while I'm trying to get a semantic model id.

 

Is there any way to retrieve those?

 

Thanks in advance.

1 ACCEPTED SOLUTION

The GUID in the database attribute is the ID of the semantic model.

View solution in original post

6 REPLIES 6
YcPeh
Frequent Visitor

In case anyone does not understand the solution at first glance (I am one of them), the dataset Id is in the "value" > "connectionDetails" > "database". Mine is something like "

"sobe_wowvirtualserver-{DatasetId}"

"

YcPeh_0-1728398768915.png

 

lbendlin
Super User
Super User

Dashboard => Report

 

Semantic Models are SSAS Tabulair data sources.   Can you show a sample output?

This is what I'm getting using the reports/get-datasources-in-group on a paginated report with a power bi dashboard datasource:

{'@odata.context': 'https://wabi-north-europe-c-primary-redirect.analysis.windows.net/v1.0/myorg/groups/854896c8-90da-4a0f-82f5-4448c5afd379/$metadata#datasources', 'value': [{'name': 'DashboardsB2BFrance_EtatdeslieuxTeamMemberGCPublic', 'datasourceType': 'AnalysisServices', 'connectionDetails': {'server': 'pbiazure://api.powerbi.com/', 'database': 'sobe_wowvirtualserver-38fec1cc-26ff-4d35-9fa2-b9432efd2bb4'}, 'datasourceId': '212bbd5e-3267-4082-9e8c-44b23ce770f3', 'gatewayId': '5c4e0146-aa7a-4d52-b261-9ef8500cc23a'}]}

 

Screenshot of my rdl report and its datasource:

JojoPBI_0-1724398075190.png

 

The GUID in the database attribute is the ID of the semantic model.

Oh, I completely missed checking what that id was, it is indeed the semantic model ID.

Thanks a lot!

YcPeh
Frequent Visitor

Hi @JojoPBI , I thought the Id returned is the paginated report Id? I am also unable to get the DatasetId of the paginated report.

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.