FabricTools v0.33.0 Public Preview

Get-FabricReportDefinition

Retrieves the definition of an Report from a specified Microsoft Fabric workspace.

Syntax

Get-FabricReportDefinition [-WorkspaceId] <guid> [[-ReportId] <guid>] [[-ReportFormat] <string>]
 [<CommonParameters>]

Description

This function retrieves the definition of an Report from a specified workspace using the provided ReportId. It handles token validation, constructs the API URL, makes the API request, and processes the response.

Examples

Example 1

This example retrieves the definition of the Report with ID "Report-67890" in the workspace with ID "workspace-12345".

Get-FabricReportDefinition -WorkspaceId "workspace-12345" -ReportId "Report-67890"

Example 2

This example retrieves the definition of the Report with ID "Report-67890" in the workspace with ID "workspace-12345" in JSON format.

Get-FabricReportDefinition -WorkspaceId "workspace-12345" -ReportId "Report-67890" -ReportFormat "json"

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace where the Report exists. This parameter is mandatory.

-ReportFormat string 2 –

The format in which to retrieve the Report definition. This parameter is optional.

-ReportId guid 1 –

The unique identifier of the Report to retrieve the definition for. This parameter is optional.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Notes

  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski