cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

How to get Dataset Id's for dashboard using REST API

We are building a Reporting Portal in our SaaS application using PowerBI embeded. 

Some of the Reports and Dashboards that will be embeded use RLS.

We have been able to populate the UI with a list of Reports and Dashboards using the Rest API.

When embeding a Report the 'Report' REST api response fields include a DatasetId which can then be used to populate the EffectiveIdentity and get the embedToken.

 

The 'Dashboard' response does not include a list of reports or datasets from which dataset Id's can be obtained to populate the EffectiveIdentity.

 

How can dataset Id's be obtained from the Rest API for a given Dashboard Id?

 

thx.

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Re: How to get Dataset Id's for dashboard using REST API

It looks to me like you can get the tiles that are included in the dashboard, and the tiles include the datasetId's

 

https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/gettiles

 

View solution in original post

2 REPLIES 2
Frequent Visitor

Re: How to get Dataset Id's for dashboard using REST API

It looks to me like you can get the tiles that are included in the dashboard, and the tiles include the datasetId's

 

https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/gettiles

 

View solution in original post

Highlighted
Memorable Member
Memorable Member

Re: How to get Dataset Id's for dashboard using REST API

@co_Phil

 

The link provided by @vbigham is good for My Workspace. If you will use any other then you would need this API - https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/gettileingroup

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors