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 / Select an item based o...
Power Automate
Answered

Select an item based on column entry

(0) ShareShare
ReportReport
Posted on by 802

Hi there, 

 

I have a desktop flow which runs in unattended mode. It logs into a third party portal and searches for users based on their user name (e.g. smithj). 

 

However, when this search is undertaken, anything containing "smithj" is returned (so sometimes more than one person) e.g. smithj2, smithj3. 

 

The purpose of the flow is to set this user to inactive, so what it does is search for the user name, and this displays a list of all users in that portal where that user name is contained, in the form of a table...

 

Let's say the user to be selected was smithj2... how can I tell the PAD flow to go to this record in the UI table and select the user which matches the input (smithj2) - by the way, each user has a hyperlink to their page which is in the User column 

 

User                   User name

John Smith        smithj

John Smith        smithj2

John Smith        smithj3

 

Thanks

K.

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    I was facing a similar challenge. With my system I was able to use double-quotes in my search for "smithj2" which only returned the middle result. Maybe yours has similar search options as well...

     

    If not, you need to make a UI element of the hyperlink with a custom selector. Sounds like your search results are listed in a table format, so this selector's purpose will be to find the ROW that contains the User name, then click on the link. In other words: find the link which exists in a row that contains the user name.

    The selector should look something something like this: tr:contains("%User%") > td > a

     

  • Kosenurm Profile Picture
    802 on at

    Thanks - this is really helpful. What action would I use in PAD to create a custom selector?

    Thanks

    K.

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    It is set up in a UI element. Check this page out, especially the anchored part: Build a custom selector - Power Automate | Microsoft Docs

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard