Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 40 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |