Automate manual updating and publishing of your Power BI Desktop files!
Report Bug
·
Request Feature
Power Refresher was developed to automate the manual updating and publishing process of Power BI Desktop files. But, how does the application achieve it? Making use of the UI Automation library to catch and manipulate the Power BI Application UI controls to do the desired task.
(↑ Top)
There are two ways to use this tool, directly from its GUI or by passing command line arguments to the executable. Anyway, if you want a full automated process, I recommend using the second option (command line args).
Simply, you have to execute the program and set all the options shown in the user interface as you wish, then just press the refresh button to begin the process.
- Input
- Options
- Refresh all: Check to refresh all the queries/tables/fields present on the model. If uncheck this option, you have to select which fields want to be updated from the below list.
- Script Visuals
- Enable: Check to allow the application to enable script visuals automatically, if they exist in the file. Only enable script visuals if you trust the author and source.
- Continue refresh: Continues with refresh process even if script visuals were disabled. Otherwise, the process will be aborted.
- Publish: Check to publish your file into a workspace after it has been updated. You must put the target workspace name in the box next to the checkbox control.
- Close file on finish: Check to close
*.pbix
file on process finish - Close application on finish: Check to close
PowerRefresher
on process finish. If this option is enabled, when the application is closed, a log file will be created and shown with all the update details
- Output
- Buttons
(↑ Top)
Run the PowerRefresher application by passing the following arguments:
-target=path -timeout=180 -refresh_mode=all/fields -fields="[field1,fieldN]" -publish=bool -workspace=name -enable_script_visuals=bool -sv_force_refresh=bool -closefile=bool -closeapp=bool -pbi_lang=en/es
Command | Description |
---|---|
target |
Full pbix file path |
timeout |
Waiting timeout in seconds (max. 600) |
refresh_mode |
Refresh mode, all or selected fields |
fields |
Fields to update |
publish |
True if you want to publish file |
workspace |
Target workspace name (to publish into) |
enable_script_visuals |
Allow the app to enable script visuals automatically |
sv_force_refresh |
Forces refresh process when script visuals are disabled |
closefile |
True if you want to close file on finish |
closeapp |
True if you want to close app on finish |
pbi_lang |
For English use en, for Spanish use es |
-target="C:\Users\MyUser\Desktop\My File.pbix" -timeout=180 -refresh_mode=fields -fields="[Table1,Table2]" -publish=true -workspace="My workspace" -enable_script_visuals=false -sv_force_refresh=true -closefile=true -closeapp=true -pbi_lang=en
Note: Remember that you can generate the script from the
Generate Script
button.
(↑ Top)
- Multi-language Support
- Spanish
- Migration to WinUI 3
Check the open issues section for a full list of proposed features (and known issues).
(↑ Top)
Distributed under the MIT License. See LICENSE.txt
for more information.
(↑ Top)
contacto@alejandrofranzoni.com.ar
(↑ Top)
You can support me through Cafecito (🇦🇷) or PayPal (Worldwide). Thank you ❤️
(↑ Top)