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 / Custom Selector To sel...
Power Automate
Answered

Custom Selector To select different elements in list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm having a problem with my custom selector.

 

I have an action to extract the element text and title from a list of elements. It produces the following table.

eloomis_0-1698688976694.png

Then there is a loop to click on the first element (I will add more actions to perform before clicking the next item in the list.)

eloomis_1-1698689015341.png

This is the static selector which I created by just selecting the first element in the list.

 

eloomis_2-1698689161586.png

I modified it by replacing the title and text from my list of elements. 

eloomis_3-1698689208655.png

 

When I use the static UI element, the first element is clicked. But when I try to use the modified element I get this error, although the text of the selector seems to match the static selector identically. Any ideas what is going on here?

eloomis_4-1698689340220.png

Thank you in advance.

 

 

I have the same question (0)
  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @eloomis !

     

    I have replicated the same to try it out.

    NathanAlvares24_0-1698696757119.png

     

    Now, I noticed what the issue you were facing. Hence let me explain to you using two "Display message" actions.

    NathanAlvares24_1-1698696891162.png

     

    Let me explain what is the output of the first display message action:

    NathanAlvares24_2-1698696945453.png

    So as seen above, if I were to use "%NextJob[0]%", I would get both values from both columns. Now, as we know datatables have rows and columns. So here in the syntax, I just mentioned one index and that is only the row. Hence, you get all the values as a datarow which comes in as a list from the first row (as 0 is the first starting index).

     

    Now, let me show you what the next display message action will produce:

    NathanAlvares24_3-1698697220364.png

    So as seen from above, if I were to use "%NextJob[0][0]%", I would get just one value. Now, here I mentioned two indexes that is the first being row and the second being the column. Hence, you get the value of the first row (as 0 is the first starting index) and first column (as 0 is the first starting index).

     

    I hope this helps.

     

    Regards,

    Nathan Alvares

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

    If this helps & solves your problem, please remember to give a "Thumbs up" and "Accept my solution" as it will help others in the future.

  • Srini007 Profile Picture
    3,467 Super User 2026 Season 1 on at

    Hi @eloomis 

     

    It's a general bug in PAD that when you pass the variables in Selectors to work you need to enable the Text editor for the selector. On the toggle and pass the Variable value and try

     

    Srini007_0-1698698310735.png

     

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @Srini007 and @NathanAlvares24 for the thoughtful suggestions. I ended up finding a solution.

     

    I changed the selector from requiring the text of the element from the extracted table, to rather accepting the title of the element, since I was extracting both from the webpage. This resolved my issue.

     

    eloomis_0-1698704923854.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard