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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to Each Filter A...
Power Automate
Unanswered

Apply to Each Filter Array or?

(0) ShareShare
ReportReport
Posted on by 10

I have a flow where I get a list from a table and then filter it out per team and then send that filtered table to the team leader via Teams.

PepZ_0-1711402145792.png

 

PepZ_2-1711402360792.png

 

However, I do this one-by-one and filter it out by team leader name and then manually enter the recipients name(email address). So, if I have 5 team leaders, I have 5 flows working to cater to each.

PepZ_3-1711402407438.png

 

Is there a way to only have 1 flow running for all team leaders by using "Apply to Each" on the "Filter Array" or any other way?

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @PepZ You are using the When an item or file is modified trigger. Can you provide more insights on why you are using this particular trigger? I can't tell from your flow where you are using the dynamic content from this flow trigger in the rest of your actions.

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • PepZ Profile Picture
    10 on at

    I'm not sure if it matters but it is a shared file where it's updated bi-hourly and the data that is used in the flow is dependent on what's on that file.

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @PepZ Okay no worries. Could you pls expand all the actions and add a screenshot of that. I'd like to review what you have so far.

  • PepZ Profile Picture
    10 on at

    PepZ_0-1711403713725.png

    PepZ_2-1711403751621.png

    PepZ_3-1711403776591.png

    PepZ_4-1711403825957.png

    PepZ_5-1711403828717.png

    PepZ_6-1711403837110.png

    PepZ_7-1711403844003.png

    PepZ_8-1711403862766.png

     

     

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @PepZ The Filter Array doesn't look like it's necessary in your flow. You should be able to use the Filter Query field in the List Rows present in a table action instead. Tip: Rename your actions to keep your flow organized.

    creativeopinion_0-1711404305710.png

    Return Count

    Whenever I use a Filter Query in a List Rows Present in a Table action, I always like to return the count of items returned in a Compose action. This is helpful when building a flow and can also be used to troubleshoot your flow.

     

    Insert a Compose action. Add an Expression. Use the length() function.

    creativeopinion_1-1711404333612.png

     

     

    Select the Dynamic content tab and insert the body dynamic content from the Filter Array action into the length() function.

    creativeopinion_2-1711404333650.png

    Condition Check

    Add a Condition action to your flow. If items have returned (aka there is number stored in the Compose action—that is not equal to 0), add the rest of your actions to the Yes branch. If not, do nothing.

    creativeopinion_3-1711404395915.png

    ... more to come..

     

     

    Does the Excel table contain the email of the team lead? Or is there another table or SharePoint list where this information is stored? 

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • PepZ Profile Picture
    10 on at

    I'll try your suggested solutions today however...

    • I tried using the filter query field but it will just show the value that is filtered(e.g. only Team A will be shown). On my original question, I want it to be dynamic and be filtered per team and send it to each team leader. Hence, my solution to first make a filter array and try to apply to each team/team leader(which I'm still not successful).
    • I don't get the point of the return count/condition check. Can you expound on that?

    Apologies, I'm just a newbie on Power Automate and this is actually overwhelming.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard