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 / How to read/click grid...
Power Automate
Unanswered

How to read/click grid data from desktop application

(0) ShareShare
ReportReport
Posted on by 286

Hello

 

We have been using PAD for lot of automation and it works great in browser. 

We have got now a desktop application which has lot of rows. Each row has a print button which downloads PDF.

 

It seems this Desktop application is based on JAVA (not sure though)

When we try to grab UI element from the desktop application, only PANE can be selected and not the grid data or rows. 

 

Is there any way to get this data? (OCR or Recorder are not an option since its dynamic data and not all rows are to be clicked)

 

Rohit4044041_0-1672118723437.png

 

I did follow steps from this thread however seems it down not still recognize rows from GRID . Any thoughts please? (Before we drop idea of automating this)

 

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Unable-to-Capture-the-Java-application-Objects/m-p/831684/highlight/true#M1454 

I have the same question (0)
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @Rohit4044041 

    Have you seen these? Maybe will be of any help.

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/java

    https://learn.microsoft.com/en-us/power-platform-release-plan/2021wave1/power-automate/support-java-apps-java-applets

     

    I am working with Delphi apps and have similar lists problem. But was able to workaround problems. Here I gave overview how got it working:

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Extract-data-from-window-Does-not-return-any-rows/m-p/1895459

     

    If you will not make JRE fully spyable, I would:

     

    1. Use fiters i see on top of the apps to filters out rows you dont want to print

    2.See if i can get the value of that counter i see on the rigth

    3. I would then get the window fullscreen and  use "move mouse" and "send click" combination to click the pritn links.

    Of course, I would build the logic to handle whatever happens after clicking print button, between the move and click.

     

    So example would be:

     

    1. Open app (maximize window)
    2. Filter out data
    3. Get counter = "10'
    4. Set the initial location of XY offset from the corner of nearest spyable UI element. Let's say x=100, y=200
    5. Check/record the constant difference/space value between middle of the adjacent rows, for example it equals 10px
    6. Initialize the gap variable = 0
    7. Loop using counter
      1. Move mouse to  X=100, y=200+%gap%
      2. Wait for "something to happen after the click"
      3. Set %gap% = %gap%+ 10

     

  • Rohit4044041 Profile Picture
    286 on at

    @momlo Thank you for the suggestion. With Rows being dynamic and no filters given from the applicaiton. We were going to rely on the color of the rows. So, only rows with yellow background are to be downloaded. With no ability to select individual rows, i have started feeling this might not work with the Pixel based calculation (considering number of ways it can go wrong, starting with screen resolution 😞 )

    But it was great suggestion. I will keep trying to see if there is way to get grid data /rows. 

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Yeah, working with pixels is a last resource indeed, however if you can control the environment - it can work

    I have a reliable bot handling up to 10k of documents in app that was automated using pixel based mouse movement.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard