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




  • 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

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