- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Working with Get-PowerBIDashboard cmdlets to collect Dashboard ID based on Workspace ID

Hello Power BI community,
I am having some troubles while trying to collect all PowerBI dashboard GUID by Workspace ID using Get-PowerBIDashboard cmdlet. I should be able to get the result I want by running Get-PowerBIDashboard -Scope Organization -WorkspaceId <Workspace GUID>, however, when I run this, the cmdlet will take a while to process and eventually throw me an error as presented below:
---
Get-PowerBIDashboard : A task was canceled.
At line:1 char:1
+ Get-PowerBIDashboard -Scope Organization -WorkspaceId $Object ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...owerBIDashboard:GetPowerBIDashboard) [Get-PowerBIDashboard], TaskCanceledException
+ FullyQualifiedErrorId : A task was canceled.,Microsoft.PowerBI.Commands.Reports.GetPowerBIDashboard
---
The interesting part about this is whenever I run this cmdlet without -WorkspaceId parameter, Get-PowerBIDashboard -Scope Organization, I am able to get all dashboard GUID with all its properties. But in my case, the missing -WorkspaceId parameter is needed because I NEED Workspace ID to accomplish my task so that I can build a PowerBI report that uses Workspace ID as reference to form relationship between reports table & dashboard table.
Another interesting part about this is that this command, Get-PowerBIDashboard -Scope Organization -WorkspaceId <Workspace GUID>, does work sometime where it successfully collect all of the dashboard GUID based on calling -WorkspaceId parameter, and I have no idea why. The problem here is that I need this command to work consistently as this command is being run as a scheduled job in one of the servers.
Therefore, I would like to know if anyone here can help me to identify this issue and get it resolve. Any suggestions or workaround to collect the Dashboard's Workspace ID based on Dashboard ID will also be truly appreciated. Thanks in advance.
---
I have tried GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dashboards but receive an error.
Code is presented below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
-
smpa01 on: We couldn't load your datamart
-
mattlee on: Turned off Callout Values in Card (New) Visual sti...
- rakeshgali on: SVG Image URL in Card (New) Visual is not working ...
-
mattlee on: New Card Visual inadvertently switching on values ...
- ViktorS on: Copying Table with Filters is Ignoring Filters
- DNilsson on: March 2025 Update - Error fetching data for this v...
-
AnGanjam on: Snowflake connector isn't showing views after Marc...
- Tomasz_Skoczyla on: March 2025 update - Style preset error
-
itismie
on: Conditional Formatting - Field Value not working a...
- jbongjbong on: Stretched App's Logo in Home Page "Recommended"
- New 7,881
- Needs Info 3,502
- Investigating 3,603
- Accepted 2,087
- Declined 38
- Delivered 3,964
-
Reports
10,156 -
Data Modeling
4,095 -
Dashboards
4,084 -
Gateways
2,103 -
Report Server
2,100 -
APIS and Embedding
1,951 -
Custom Visuals
1,773 -
Content Packs
521 -
Mobile
353 -
Need Help
11 -
Show and Tell
3 -
General Comment
2 -
Tips and Tricks
1 -
Power BI Desktop
1