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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,084)