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 Automate
Unanswered

filter and group by

(0) ShareShare
ReportReport
Posted on by 504

I have a get items which filters all status = pending but whenever this flow triggers it send to all filtered status email address
Example: User A has 3 rows with pending, so he's receiving 3 different emails while it should only be 1 to avoid flooding.
Is it possible to group this by email address which has status = pending so if a user has 3 

nagestiada_1-1594088592401.png

 

 

Categories:
  • Rahber Profile Picture
    1,935 on at

    There is no direct way of doing so but this how i think it can be achieved

     

    1) Get all users from the share point and store it in an array variable

    2) Apply to each on that array variable

    3) Use Get items in apply to each now and filter the user by user in Array variable

    4) In the second apply to each store the details of item in data variable

    5) outside the second apply to each send an email with variable information.

     

    This will send 1 email per user however you would need a lot of care to manage the items in data variable

     

    Something for you to get an idea from: https://powerusers.microsoft.com/t5/Building-Flows/Group-BY-in-Flow-to-send-email-of-aggregated-data/td-p/397420

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard