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 / Can selectors be selec...
Power Automate
Unanswered

Can selectors be selected conditionally?

(0) ShareShare
ReportReport
Posted on by 417

I want to use different selectors to execute the process under different conditions, is it possible?

螢幕擷取畫面 2023-07-09 134613.png

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

    No, they cannot. If your element has several selectors, they will be attempted in the order in which they are added.

     

    If you want to conditionally use different selectors, you need to capture them as separate elements and then use separate actions under the conditions.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution.

    If you like my response, please give it a Thumbs Up.

     

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

  • alee001 Profile Picture
    417 on at

    It is too inconvenient to create multiple UI elements for different selectors, thank you for your answer.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, there is no other way to do it. So, you either do the inconvenient thing, or not do it at all.

     

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

    Hi @alee001 

     

    Could you try like this ?

     

    Since you have 3 different selectors for different situations, 

     

    Is there is dynamic element involved , which you add it as variable based on condition, like some attribute value ?

     

    Or 

     

    Since you have defined 3 selectors like below 

    Nived_Nambiar_0-1688909544417.png

     

    each selectors will work when its previous version didn't work, so for all condition, use the same UI Element, so it will try selectors accordingly based on which selector is available now 

     

    Try and let me know 

     

     

  • alee001 Profile Picture
    417 on at

    Does the ordering of the selectors matter, meaning the default executes the top one, if false the second...and so on?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Yes, the ordering does matter. The top one is executed first. If you have several, it will take a while before the last one is accessed. Using this instead of different elements for your conditions will significantly slow your flow down.

     

  • alee001 Profile Picture
    417 on at

    I also thought that if it can be executed sequentially, the debugging will also make the process very slow. I will try again...Thanks

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

    Hi @alee001 

     

    does selectors differ from each other via by any attribute ?

     

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    An alternative would be to set the entire selector as a variable and then set the variable in a condition before using the UI action.

    This would mean there is only one selector, which is much faster. But you would need a condition action and a Set variable action to set the selector value.

     

  • alee001 Profile Picture
    417 on at

    The main thing is to switch between opened Excel files and different worksheet in a loop.

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 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard