Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to filter again (on person column) the output from a Filter Array?

(0) ShareShare
ReportReport
Posted on by 44

Hello,

I have a SharePoint list called Items Log. Each item in the list is Assigned to a person (person column).

I have used Get Items to get the items from this list with a Filter Query criteria.

keepitsimple_0-1701689817355.png

Since, filter query criteria cannot have hyperlink columns, I have used Filter array to apply more criteria.

keepitsimple_1-1701692220027.png

Then, I have used Select and Compose to get the unique 'Assigned To' values in an array.

 

keepitsimple_2-1701692351767.png

Next, for each of the unique 'Assigned To' persons, I want to filter the Items against their names and do further processing (like to send an email to each of these persons with a list of Items against their names).

To do this, I am trying to use a 'Apply to each' for each unique name and then filter again from the first Filter array to get the items for the person.

keepitsimple_3-1701693231770.png

I am not able to get to the correct syntax of the values to be used in the second Filter Array so that I can have desired results. I tried various options but none of them worked.

If someone has already done this and can help, it would be great.

Thank You

  • keepitsimple Profile Picture
    44 on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hi @v-yueyun-msft ,

    Let me try one more time to explain.

    Step 1: Get Items

    keepitsimple_0-1702401563684.png

    Step 2: Filter Array

    keepitsimple_1-1702401814914.png

    Please let me know what should be the next steps after this Filter Array now to achieve the results of sending an email to each person in Assigned with the list of Items assigned to him/her?

     

    ItemAssigned To
    Item1Person A
    Item2Person B
    Item3Person A
    Item4Person C
    Item5Person C
    Item6Person A

     

    I want to send email to each of these persons with their list of items.

    The email to Person A should have Items 1, 3 and 6.

    The email to Person B should have Item 2.

    And the email to Person C should have Items 4 and 5.

     

    Thanks

  • v-yueyun-msft Profile Picture
    on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hi , @keepitsimple 

    Thanks for your quick response! Sorry i may misunderstand your need ...

    According to your description, you have a URL Column and you want to filter this column in Filter Array action.

    If possible , can you give me some sample json you have and the end result you need in your side so that i can help you better!!


    Best Regards,

    Yueyun Zhang

     

  • keepitsimple Profile Picture
    44 on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hello @v-yueyun-msft ,

    Thanks for putting so much of the details. However, it is still missing something.

    In my flow, I need to use a Filter Array just after the Get Items to further filter out the output from Get Items. (My list has a URL column. URL columns cannot be used in the filter query of Get Items, therefore I need to do a Filter Array after Get Items.)

    It is because of this first Filter Array I am not able to get to the right options to be used in the second Filter Array (that is within the Apply to each loop).

     

    Regards

  • v-yueyun-msft Profile Picture
    on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hi , @keepitsimple 

    Thanks for your quick response! This is my test SharePoint List:

    vyueyunmsft_0-1701916528835.jpeg

     

    This is my flow:

    vyueyunmsft_1-1701916528839.jpeg

     

    And for the AniyaZhang1 , i send this email :

    vyueyunmsft_2-1701916528840.jpeg

     

     

    (1)The "Get irtems" and "Select" action:

    vyueyunmsft_3-1701916528844.jpeg

     

    (2)The Apply to each action:

    vyueyunmsft_4-1701916528849.jpeg

     


    Best Regards,

    Yueyun Zhang

     

  • keepitsimple Profile Picture
    44 on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hi @v-yueyun-msft ,

    Your understanding is partly correct.

    I want to filter the output from the first Filter Array (there is a Filter Array just after my Get Items), for each of the unique Assigned To value like explained below.

    ItemAssigned To
    Item1Person A
    Item2Person B
    Item3Person A
    Item4Person C
    Item5Person C
    Item6Person A

     

    I want to send email to each of these persons with their list of items.

    The email to Person A should have Items 1, 3 and 6.

    The email to Person B should have Item 2.

    And the email to Person C should have Items 4 and 5.

    I hope it is clearer this time.

    Thanks

  • v-yueyun-msft Profile Picture
    on at
    Re: How to filter again (on person column) the output from a Filter Array?

    Hi , @keepitsimple 

    According to your description, do you mean you want to filter the displayName in your array?

    This is my sharePoint list :

    vyueyunmsft_0-1701742182994.png

    This is my flow which is similar to yours:

    vyueyunmsft_1-1701742203221.png

    This is my Compose action output :

    vyueyunmsft_2-1701742277184.png

    If we want to filter this array based on the [DisplayName] field or other fields . We can just use the FIlter Array action:

    vyueyunmsft_3-1701742434712.png

    item()?['DisplayName']
     
     

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

    Yueyun Zhang

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1