Forum Discussion
Macros in Power Automate
Hi community ,
I am looking for some UI automation in Power BI desktop for launching power bi report from power bi template where I need to provide input manually while launching the template. I need to automate this task Can I use macros ? or any other way like API ?
my initial search shows that macros are not supported.
your answer are welcome !
Thanks in Advance
3 Replies
- lbendlinSuper User
You can try Power Automate Desktop, but frankly none of these automation tools are robust enough for what you seem to be trying to achieve, as Power BI Desktop does not have an object model that it can expose to macros.
- jason533New Member
Power Automate Desktop seems like a practical option for this scenario. While traditional macros aren't supported directly in Power BI Desktop, desktop UI automation can still help with repetitive tasks such as opening templates, entering required values, and navigating through the interface. Tinytask modern automation software for keyboard and mouse recording and playing in loops. Tinytask Mailerchrome extension allows multiple Emails sending from Gmail as a human behavior. TinyTask modern automation Software for Window For workflows that need to be maintained over time, it's usually worth exploring APIs or native automation features where they're available, since they tend to be more reliable than UI-based automation.
- Prince0011Solution Sage
Hi User,
Power BI Desktop doesn't provide a supported API or macro capability to automate UI interactions, including launching a .pbit template and supplying parameter values during the startup dialog.
Some alternative approaches are:
Use Power Query parameters and update them programmatically before opening the report, where applicable.
If you're working with published reports, use the Power BI REST APIs for dataset refresh, deployment, and other supported operations instead of UI automation.
For desktop UI automation, Power Automate Desktop or tools such as PowerShell (for file operations) can automate mouse and keyboard actions, but these approaches are UI-based and may be less reliable if the interface changes.
If the goal is to create reports automatically, consider using Power BI Project (.pbip) files and source control rather than automating the Desktop UI.
For more information:
Power BI REST APIs: https://learn.microsoft.com/rest/api/power-bi/
Power Automate Desktop: https://learn.microsoft.com/power-automate/desktop-flows/
Power BI Project (.pbip): https://learn.microsoft.com/power-bi/developer/projects/projects-overview
Could you also clarify:
Are you trying to automate opening a .pbit file with parameter values, or create reports in bulk?
Is this a one-time migration or a recurring process?
Are you limited to Power Automate, or would PowerShell or another automation tool also be an option?
This will help determine the most suitable automation approach for your scenario.
π‘ Helpful? Give a Kudos π β keep the community growing.
β Solved your issue? Mark this as the Accepted Solution βοΈ
Best regards,
Prince Singh | Data Science & Microsoft Fabric Enthusiast