Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I can successfully update the parameters using: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters-in-group , however I need help in updating Parameters (Server & Database) programmatically pulling from SQL Database and add it to the already Published Power BI Dataset.
Table with Server & Database details is already created in SQL DB, using Rest API or PS Script I want them to update to the dataset automatically (without giving hardcoded variables(values)) which is already published to Power BI Service.
Exactly I'm looking for this option: https://youtu.be/MJVSu47iMmo?t=413 from (6:53 to 7:06) via PS Script
Thanks in Advance!
Solved! Go to Solution.
I resolved the issue! 🙂
Need to pass If condition in between Foreach loop to get the specific details and to update it to the dataset.
Thanks for your responses @lbendlin
The video describes how to do this via PowerShell. What have you tried and where are you stuck ?
I can update parameters when I give a hardcoded values like below and use it in the below script
I tried different loops but ending with below error even though the authentication is going good:
My modified script:
Script:
Not sure why you are using separate loops - your overall process is not clear to me.
Beware - 429 errors mean you are running too many API calls in too short of a timeframe.
I am ready to modify the script if needed, can you please help me with sample script
1. I have a SQL DB table with Server and Database details for different clients
For example, we have A,B,C,D as clients name
2. I want to use that SQL query and pull those parameters (Server and Database) details of specific client of "C"
3. Then it should update to the Power BI dataset I specify
That's my requirement
I resolved the issue! 🙂
Need to pass If condition in between Foreach loop to get the specific details and to update it to the dataset.
Thanks for your responses @lbendlin
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
42 | |
30 | |
27 | |
27 |