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 / Sorting table data by ...
Power Automate
Unanswered

Sorting table data by person and send mail with relevant data

(0) ShareShare
ReportReport
Posted on by 69

Hey Guys,

 

I got a list of tasks on SharePoint list that contains tasks of several engineers.

I would like to get certain part of them (the ones that their due date has passed or that does not have a priority, for example) and send them a take with all task with the issue which are related to each of them. I believe I can do it with for each + filter array but then I need to specify all engineer names. I would like that the automation will gather all the task that has the same owner and send to each, his own tasks.

I'm a bit stuck in the logic and functional part of how to do it, Would be happy for some help, Thanks

ShaharGR_0-1617434797029.pngShaharGR_1-1617434840371.png

ShaharGR_2-1617434942657.png

 

 

 

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @ShaharGR 

     

    I would run a get items and then an apply to each on the unique engineer names/emails (not ALL rows).  In the apply to each, use the engineer name/email as a filter (filter array action) on the result of the get items.  This looks like you might have something very similar.  The only thing you are missing is a list of unique emails for the engineers.

     

    You can get this list of unique emails using a union on the list of all engineer emails with itself.  If you perform a union(array(1,2,3,3,2,1,3,2,1,3,1,2), array(1,2,3,3,2,1,3,2,1,3,1,2)) you will get 1,2,3 by return.  In order to get the emails required for this you can use the select action on the Email Field, using the text mode for mapping.  Do these two actions before your apply to each and replace the output of the apply to each with the array of emails.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • ShaharGR Profile Picture
    69 on at

    OK, Thanks @DamoBird365 , I think I got what to do.
    I'll do what you said and update the post with the solution for future generations.

    Cheers!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard