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 / Error with ui elements
Power Automate
Unanswered

Error with ui elements

(0) ShareShare
ReportReport
Posted on by

Hi! I want to automate clicking the ui element which corresponds with the name i have on my excell data but i am not sure how to do this. I tried selecting the ui element for the first iteration and then changing its name to the variable i created which selects the name on excell and it keeps failing

 

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    In excel you can call the data by 

    Launch excel

    Read excel

    datatable[coloumnname]

    Then use click activity

     

    Hope this helps

    Usha 

     

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Inside for each you can call the value and click

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You will need to read from Excel first. Do you know how to do that? You will need to use the "Excel" actions:

    1. Launch Excel to open the document
    2. Read from Excel worksheet to read the data (make it read all the data available in the sheet)
    3. Close Excel to close the document

     

    Depending on your business requirements, if you need to iterate through several items in Excel, you may need to use a loop, such as the For each loop to process them one by one.

     

    Then you need to modify the selector of the UI element you want to click, to be able to use a variable inside it. See this for reference on modifying selectors and using variables in them: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

    Also this tutorial: https://www.youtube.com/watch?v=2PcyBa22Jj8&ab_channel=Thomas%22Shaky%22Petersen

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Razvan2922 

     

    could you share how selector looks like ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard