web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Access Power Bi Report...
Power Automate
Unanswered

Access Power Bi Report and export table in .csv

(0) ShareShare
ReportReport
Posted on by 48

Dear All,

 

I was wondering if the following could be achieved using Power Automate Desktop:

 

Every day I need to open a browser, open Power Bi and load a specific report in Power Bi (I am not an owner of the report and I dont have access to the dataset) and then on one of the report pages I need to click on the three dots in the top right corner on the matrix there and click export data - > summarized data -> export as .csv and then save this file in a folder on my PC.

 

So while this doesnt take that much time , it something that happens on daily basis and I have to run the same for 4 different reports - so I was wondering if something like this can be achieved and automated via Power Automate desktop.

 

Many thanks in advance for the support!

 

Best regards,

Ivan

  • PhilipTreacy Profile Picture
    120 on at

    Hi @IPGeorgiev 

     

    I guess the short answer is yes this can be done. 

     

    Have you used PAD at all?  Implementing the steps necessary will require starting a browser and navigating to the report.

     

    Then clicking on the relevant parts of the site/screen is a matter of using Move mouse ...  steps.  Exactly which will depend on which ones work for the site.

     

    Do you want to have a go and then come back if you get stuck on getting it working?

     

    regards

     

    Phil

  • IPGeorgiev Profile Picture
    48 on at

    Hi Philip!

    Thanks for the response! I have progress - on Edge and Chrome I managed to reach the last step - clicking on the button to download the file, however there I get an error that download is not supported on Chrome/Edge and I should use the automation browser, however when I try with it - I doesnt open the Power BI Report - it just loads a blank page.


    Any idea how to overcome this?

     

    Many thanks!

     

    Best regards,
    Ivan

  • rolign Profile Picture
    on at

    Does the download work on those browsers when you do it manually?

    We have automated PowerBi report download using Power Bi Desktop application, it works basically the same way as via browser, you can also try that, if available.

  • IPGeorgiev Profile Picture
    48 on at

    Yes, when I try manually it works, So here basically I use the export data function on a matrix:

     

    IPGeorgiev_0-1658925475846.png

     

    And when this button is clicked the export starts, but power automate returns an error that it can only work with Internet Explorer or Automation Browser but it doesnt work with both of them as it cant even load the power bi page. It shows just a blank page.

     

    It wont work via the Desktop App since I am not an owner of this report specifically, I am just an user of the report with access to specific range of the data.

     

    Thanks a lot in advance!!

     

    Best regards,

    Ivan

  • rolign Profile Picture
    on at

    I thought PowerBi Desktop displays the same data as in the browser, the link to the report remains the same.

    Nevertheless - https://docs.microsoft.com/en-us/power-automate/desktop-flows/using-browsers Have a look at this link, are Chrome/Edge extensions set, updated? Maybe try removing, adding the newest version or so.

  • IPGeorgiev Profile Picture
    48 on at

    Hi @rolign ,

     

    thanks a lot!

     

    Basically Power Bi Desktop is only to build content, not to work with - I mean I cant load a dataset or a report I dont have access to (to the workspace/dataset) - at least I dont know how this could be achieved 

    Thanks for the link - I have checked it and its all good with the Chrome extension - removed it and added it again , just for any case, however the issue might be something else - because I tried to see what will happen if I use "Click link on a web page" and select not the export but the cancel button and it still doesnt work:

     

    Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Element with selector 'mat-dialog-container[Id="mat-dialog-0"] > export-data-dialog[Class="ng-star-inserted"] > mat-dialog-actions[Class="mat-dialog-actions"] > button[Class="mat-focus-indicator pbi-modern-button secondaryBtn cancelBtn exportButton mat-button mat-button-base"][Type="submit"]' not found. ---> Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.Exceptions.ElementNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.Exceptions.ElementNotFoundException' was thrown.
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationResultExtensions.ThrowIfError(WebAutomationResult result, String cssSelector, String option)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
    at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

     

    Here what I setup:

     

    IPGeorgiev_0-1658928631033.png

     

     

    All other clicks are being executed, but only this one (click on Cancel or Export) triggers the error. 


    Any ideas what I am doing wrong here?

     

    Many thanks!

     

    Best regards,
    Ivan

  • rolign Profile Picture
    on at

    Does the selector change if you capture it, reload the page, capture again or it remains the same? Not entirely sure what is going wrong here - any difference if you choose to click an image?

  • IPGeorgiev Profile Picture
    48 on at

    I tried to capture it several time, but no success. I tried for example to change it to click on the whole pop up window and it works but the Export, Cancel and X (close ) button in the top right corner - all 3 of them dont work for some unclear reason 😞

  • rolign Profile Picture
    on at

    Just checked with colleagues that we do indeed use images and/or keystrokes to operate with those buttons, looks like you'll have to work out a combination with keyboard that works for this one. (Click, {Tab}, {Down} {Down} etc.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard