cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alice1
Frequent Visitor

Is there a better way to filter strings based on a list of varying conditions?

Currently I am using Condition under Control because it is allowing me to grow the list vertically and it has "contains" function built-in, which allows me to consolidate few conditions.

 

I tried using Switch, but if there are more than a handful of conditions, the horizontally scrolling of the list makes it almost impossible to navigate. 

 

Both options seem pretty limited and inefficient to filter a string through a list of conditions. Is there a better way available? 

 

Regards, 

 

Alice

1 REPLY 1
ScottShearer
Super User
Super User

@alice1 

Can you explain a little more about your requirement?  As a general rule, if the connector that you are using allows it, you are much better of using an OData filter and filtering out the unwanted items before you get the results.  This makes the Flow faster and can eliminate many condition actions.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,279)