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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get last child ...
Power Automate
Unanswered

How to get last child of a ui element by extracting a combo box of desktop application.

(0) ShareShare
ReportReport
Posted on by 30

Hello everyone,

I'm trying to get the last child of a drop-down menu by getting the details of drop-down by expanding the drop-down menu. Can anyone help me with the selector to get the last child of the drop-down menu. Please find the screenshots for reference.

Karthik23_0-1697613583681.png

 

Karthik23_1-1697613614618.png


Thanks,
Karthik.




I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try setting the "Ordinal" parameter to -1.

    Alternatively, you may want to use Extract data from window or Get details of element in window to get the values out and then get the name of the last item into a variable. You can then use that in the selector by passing in a variable. See here for reference: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors#use-variables-in-a-custom-selector

    -------------------------------------------------------------------------
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard