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

Custom Selector To select different elements in list

(0) ShareShare
ReportReport
Posted on by

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,327 Super User 2025 Season 2 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
    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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard