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