.NET Framework/Embed for your organization/UserOwnsData/Services/PowerBIService.cs
/// <summary>
/// Returns a list of dashboards in a Power BI workspace
/// </summary>
/// <param name="workspaceId">Workspace where the dashboard resides</param>
/// <returns>List of dashboard in a workspace</returns>
Returns a list of dashboards in a Power BI workspace
Returns a list of dashboards in a Power BI workspace
public static async Task<IList<Dashboard>> GetDashboardsAsync(string workspaceId)
		{
			using (var client = GetPowerBiClient())
			{
				var dashboards = await client.Dashboards.GetDashboardsInGroupAsync(new Guid(workspaceId));
				return dashboards.Value;
			}
		}
public static async Task < IList < Dashboard > > GetDashboardsAsync ( string workspaceId ) { using ( var client = GetPowerBiClient ( ) ) { var dashboards = await client . Dashboards . GetDashboardsInGroupAsync ( new Guid ( workspaceId ) ) ; return dashboards . Value ; } }
Returns a list of dashboards in a Power BI workspace
Returns a list of dashboards in a Power BI workspace
List of dashboard in a workspace
List of dashboard in a workspace
workspaceId
string
Workspace where the dashboard resides
Workspace where the dashboard resides