Forum Discussion
jared168
11 years agoMicrosoft Employee
Command line to update data sources
Is there a way to update my PBIX files without manually opening and refreshing them? I'd like to have a script run and update my data. Any Ideas? (For why I'm not using the Power BI Online up...
Shahid12523
1 year agoCommunity Champion
Use Power BI Report Server (if you have it) → supports scheduled refresh.
Use the Power BI REST API + a service principal → refresh dataset in the Service (if you can publish).
For pure .pbix refresh on-prem:
Use Power Automate Desktop / Task Scheduler + a script to open Power BI Desktop and send keystrokes to refresh & save.
Or use third-party tools like Power Update (was popular back in 2015) to automate PBIX refresh and saving.
👉 Out of the box: no command-line refresh for PBIX. Needs either API, Report Server, or external tool.