Forum Discussion
amsrivas28
Apr 14, 2021Copper Contributor
Powershell iterative command on batches.
Hi Folks!! I need to retrieve Dataflow based on Workspace as per below PowerShell command $Workspaces = Get-PowerBIWorkspace $res = @( foreach ($workspace in $Workspaces) {Get-PowerBIDataFlow -...
AndySvints
Apr 16, 2021Steel Contributor
Hell amsrivas28,
Can you please elaborate on what error are you getting when cmdlet breaks?
There are two possible options to get PowerBI data flow information:
1) Get all Power BI workspaces along with related reports, dashboards, datasets, dataflows and workbooks within the user's organization:
Get-PowerBIWorkspace -Scope Organization -Include All
2) Get all Power BI dataflows within a user's organization
Get-PowerBIDataflow -Scope Organization
Hope that helps.
amsrivas28
Apr 19, 2021Copper Contributor
Hi AndySvints ,
I need to retreive data that will have relationship between Workspace and Dataflow that's why i am passing workspaceid into the Dataflow command and later will retreive workspaceid as well alongwith dataflow detail.
I am more than happy if you can suggest any other way to fetch relationship between all the heads such as workspaces, dataset, dataflow report and user.
Thanks
Amit