Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
However, when trying it with below PS Script I am getting errors. Below is the error screenshot
PowerShell Script I'm using:
I really appreciate if someone can help me with the above ask.
Thanks in Advance!
Solved! Go to Solution.
$SQLFile returns an object (the table of the rows for your query result). Now you need to run a ForEach on this to address the individual workspaces.
I played with the script and tried to pass Foreach as you said and it resolved the issue for me
Thanks @lbendlin
$SQLFile returns an object (the table of the rows for your query result). Now you need to run a ForEach on this to address the individual workspaces.
Thanks for the response @lbendlin
If possible, can you please help me with the script to use the ForEach loop for the above ask
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |