cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alice1
Level: Powered On

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
Super User
Super User

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

@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
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,222)