cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kosenurm
Post Partisan
Post Partisan

Select an item based on column entry

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Henrik_M
Super User
Super User

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

View solution in original post

3 REPLIES 3
Henrik_M
Super User
Super User

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

 

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

Thanks

K.

Henrik_M
Super User
Super User

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Solution Authors
Top Kudoed Authors
Users online (1,965)