Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Himanshu_G
Helper I
Helper I

How to retrieve both proxy- and core-dataset IDs to generate an embed token for a DirectQuery

I have a Power BI report built on a proxy dataset (used for row-level security, parameterization, etc.). That proxy dataset in turn is created on top of a core DirectQuery dataset. In order to generate an embed token for the report, I need both:

  1. The proxy dataset’s ID (so I can call the GenerateToken endpoint with the right dataset)

  2. The underlying core dataset’s ID (so that DirectQuery queries actually run against the real model)


What I’ve Tried

  • Using GetReportInGroup to retrieve the report metadata. This returns the proxy dataset’s GUID but provides no indication of the core dataset’s GUID.

  • Calling GetDataSourcesInGroup on the proxy dataset to inspect its data source connection details. While I can see that it’s pointing to my AnalysisServices endpoint and database name, there’s still no dataset GUID exposed.


Questions

  1. Is there a REST API endpoint or property on one of the existing endpoints that returns the core dataset’s GUID, given only the proxy dataset’s GUID?

  2. If not, what’s the best practice to programmatically discover that core dataset ID in a fully automated (non-manual) flow?

Thanks in advance for any pointers!

1 ACCEPTED SOLUTION
andrewsommer
Super User
Super User

No, there is currently no REST API endpoint that directly returns the underlying/core dataset ID (from a DirectQuery for Power BI dataset) given only the proxy dataset ID. The metadata is internally present, but not surfaced via the public Power BI REST API.

 

Please mark this post as solution if it helps you. Appreciate Kudos.

View solution in original post

1 REPLY 1
andrewsommer
Super User
Super User

No, there is currently no REST API endpoint that directly returns the underlying/core dataset ID (from a DirectQuery for Power BI dataset) given only the proxy dataset ID. The metadata is internally present, but not surfaced via the public Power BI REST API.

 

Please mark this post as solution if it helps you. Appreciate Kudos.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors