.NET Framework/Embed for your organization/UserOwnsData/Services/PowerBIService.cs
/// <summary>
/// Returns a list of tiles from a dashboard in a Power BI workspace
/// </summary>
/// <param name="workspaceId">Workspace where the dashboard and tile resides</param>
/// <param name="dashboardId">Dashboard Id to get list of tiles</param>
/// <returns>List of tiles in a dashboard</returns>
Returns a list of tiles from a dashboard in a Power BI workspace
Returns a list of tiles from a dashboard in a Power BI workspace
public static async Task<IList<Tile>> GetTilesAsync(string workspaceId, string dashboardId)
		{
			using (var client = GetPowerBiClient())
			{
				var tiles = await client.Dashboards.GetTilesInGroupAsync(new Guid(workspaceId), new Guid(dashboardId));
				return tiles.Value;
			}
		}
public static async Task < IList < Tile > > GetTilesAsync ( string workspaceId , string dashboardId ) { using ( var client = GetPowerBiClient ( ) ) { var tiles = await client . Dashboards . GetTilesInGroupAsync ( new Guid ( workspaceId ) , new Guid ( dashboardId ) ) ; return tiles . Value ; } }
Returns a list of tiles from a dashboard in a Power BI workspace
Returns a list of tiles from a dashboard in a Power BI workspace
List of tiles in a dashboard
List of tiles in a dashboard
workspaceId
string
Workspace where the dashboard and tile resides
Workspace where the dashboard and tile resides
dashboardId
string
Dashboard Id to get list of tiles
Dashboard Id to get list of tiles