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 click dynamic U...
Power Automate
Answered

How to click dynamic UI element in application?

(0) ShareShare
ReportReport
Posted on by 8

Hi, peers

 

I have one question when using the Power Automation Desktop. Here's the simplified version of my real problem.

Take OneNote for example, If I need to select note sections repeatedly, and input random figure in every related note page?

 

Kingmir_0-1638188069862.png    Kingmir_1-1638188102604.png

 

I am wondering whether "Select menu option in Window" or "Click UI element in window" can fulfill my needs.

Thanks advance for your answering and read.

  • Verified answer
    geavgous Profile Picture
    Microsoft Employee on at

    Hi @Kingmir , 

     

    Thanks for trying out Power Automate! In this challenging case, the actions seem correct, in case NotePad is used from the desktop side and not on the browser where you will have to switch to web automation. 

    However, when you deal with dynamic IDs, the selector you create should also be a bit more advanced, which requires some advanced knowledge. 

    You can capture a UI element, and try to modify it, or even create it from scratch, so that it can recognize and capture elements, the IDs of which keep changing after each reload. 

    So instead of tracking a UI element by it's ID, you can use other attributes like, name e.t.c.

     

    Thanks

    George

  • Kingmir Profile Picture
    8 on at

    Hi, George

     

    thanks for your prompt reply~ 🌺

     

    As I mentioned before, OneNote is just an example to illustrate my real problem. The real problem is to build one automation flow on a internal system without Web version, therefore, unfortunately, no web automation can be used. 

     

    Your suggestion really insights me, I have tried switching ID, like following (Sorry, I only installed mandarin version😁, and don't know how to change, it's another obstacle when I watch tutoring videos, mapping by relative location and icons)

     

    First, I capture UI ID for "New1" and "New2", by comparing, I found the only difference between two UI element is the yellow part.

    Kingmir_0-1638190951562.png

    So I find the difference place, and change 1 to %LoopIndex%

    Kingmir_1-1638191228069.png

    Kingmir_2-1638191296393.png

    But in this way, nothing can be clicked, I don't know how to solve this.

  • Kingmir Profile Picture
    8 on at

    Hi, George

     

    Wahahahaha!!! Thanks to you, I just find out the solution~

    Kingmir_3-1638191707226.png

    Click the yellow button, switching to editable version, choosing variable here.

    Kingmir_6-1638191817728.png

    Don't know the difference, but it works!

     

    Woooooeeeeeee

     

    Thanks, George

  • geavgous Profile Picture
    Microsoft Employee on at

    It's great @Kingmir  that it worked! In case you consider this issue solved, please go ahead and mark it as resolved! Happy to help with anything else you might need 🙂

    Thanks,

    George

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard