Skip to main content

Notifications

Community site session details

Community site session details

Session Id : KPJQwoxO49FkbRS9hWTo3c
Copilot Studio - Topic Creation & Management
Unanswered

How to search a array of values in filter array - Power Automate

Like (0) ShareShare
ReportReport
Posted on 29 Feb 2024 04:05:46 by 11

Hi, can I know how to search a array of values in filter array in Power Automate.

For example - user input in PVA was - name1, name2 . I have split this input by comma. 

Sriram_S18_0-1709179311574.png  

Sriram_S18_1-1709179395465.png


How can I search these values in filter array without using for each loop?

 

Categories:
  • Sriram_S18 Profile Picture
    11 on 01 Mar 2024 at 17:14:55
    Re: How to search a array of values in filter array - Power Automate

    Thanks for your answer. We don't know how many inputs we will get. Is there a way to search an array of user input values in a filter array without using loop?

  • VauBee Profile Picture
    17 Super User 2025 Season 1 on 29 Feb 2024 at 09:12:00
    Re: How to search a array of values in filter array - Power Automate

    Hi @Sriram_S18 !  Assuming you’ve already split the user input by comma (as you mentioned), you should have an array of values, you can use Filter array action.

    • From: the array you want to search
    • Filter: use advanced mode -> contains to check if each item in the array contains any of the user input values

     

    @or(
    	contains(item()?['name'], 'name1'),
    	contains(item()?['name'], 'name2')
    )

     

    The output will contain only the items that match the search criteria & you can then process this filtered output as needed (e.g., store it in a variable, use it in subsequent actions, etc.)

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question / helped to solve your problem, please accept as solution and give me a Thumbs up. Thanks! - Remember: you can accept more than one post as a solution.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,765 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete