web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter a values within...
Power Automate
Unanswered

Filter a values within one array which contains values from another array

(0) ShareShare
ReportReport
Posted on by 10

Hello, I have 2 arrays and I need to filter the values within one array (let's call it Array1) which contains values from another array (let's call this one Array2). The first one (column) I take from sharepoint  :  List Rows + Select and the second one I have stored in variable.

 

Example: 

Array1: helping, source, never, power, automate, keyboard

Array2: help, brb, auto, sou

So the output will look like: helping, source, automate.

 

I tried to to use Filter array but I do something wrong. Could you please advise?

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @MPlo ,

    My SharePoint List:

    vyetonggumsft_3-1708946007648.png

    My Flow:

    vyetonggumsft_0-1708945693924.png

    vyetonggumsft_1-1708945860725.png

     

    item()
    items('Apply_to_each')

     

    If you still have problem, please post a screenshot of your complete flow configuration.

    Best Regards,

    Sunshine Gu

  • MPlo Profile Picture
    10 on at

    Great, thanks a lot, I did struggle with right parameters in filter arrays step. So the output now is the array within an Apply to each.

    How do I get the values out of this loop and get the array (or string) of matching values?

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @MPlo ,

    Please reference this test.

    vyetonggumsft_7-1708995998330.png

    Add another variable named test, and apply to each 'Filter_array' body.

    Then using 'item()' expression to Append to array variable.

    vyetonggumsft_1-1708995391878.png

    item()

    Jump out of the two loops and add the compose control, put the test variable in, run the flow, check the output of compose, and you can get the value of the test variable.

    vyetonggumsft_6-1708995884030.png

    Best Regards,

    Sunshine Gu

     

     

  • MPlo Profile Picture
    10 on at

    many thanks for your 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard