Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Flow to send digest emails to "assigned user" column from a SharePoint online list based on status column items "In Progress" for items from the last 7 days

(0) ShareShare
ReportReport
Posted on by 247

hello all,

 

I am trying to make a flow with recurrence once per day and specifically to send a daily digest emails to "assigned user" column from a SharePoint online list based on status column items "In Progress" for items from the last 7 days.

 

example:

Assigned userStatus
User 1In Progress
User 1Completed
User 1In Progress
User 2In Progress

 

so based on the above example the flow at the time of recurrance will send two emails:

  •  One digest at User 1 with the two things which are "In progress"
  •  One digest at User 2 with the one thing which is "in progress"

 

 

 

Pic 1Pic 1

 

Flow part 2.png

 

Flow part 3.png

 Flow part 4.png

 

but if I put the "Assigned User" as the TO: at the Send an email then it will send emails for all the items which the "assigned user" has status "in progress" and not as digest.

 

any ideas?

  • kouliscon Profile Picture
    kouliscon 247 on at
    Re: Flow to send digest emails to "assigned user" column from a SharePoint online list based on status column items "In Progress" for items from the last 7 days

    hello @Mira_Ghaly 

    can you assist me on this pls?

  • kouliscon Profile Picture
    kouliscon 247 on at
    Re: Flow to send digest emails to "assigned user" column from a SharePoint online list based on status column items "In Progress" for items from the last 7 days

    @Mira_Ghalyhello,

     

    tried to apply what you mention but I couldn't as is pretty complicated and I am not so familiar

     

    can you paste the complete flow if you have it so I will understand better of what needs to be done.

     

    thank you in advance.

  • Mira Ghaly Profile Picture
    Mira Ghaly 11,409 on at
    Re: Flow to send digest emails to "assigned user" column from a SharePoint online list based on status column items "In Progress" for items from the last 7 days

    Hi @kouliscon 

     

    You need to follow a grouping logic as the below:

    1. You need to get the list of distinct users from your List where status = In Progress

    So Initialize an array and call it Users Array; in my example it is array of disticnt IDs

    Mira_Ghaly_1-1599711002397.png

     

    In my example the list is called Reservation List , so only retrieve items where status = In Progress by using the ODATA filter Query

     

    Mira_Ghaly_0-1599710977237.png

    2. Now you need to Loop on this Get Items to append the distinct Users ID

    Reservation ID is the User in my Example, so first you check if it is not added before then append it to the Array

    Mira_Ghaly_2-1599711102609.png

    3. Now you will have to loop on the distinct array of users , Get the related items specific to this users by using the ODATA filter,

    So dependent whether you will save email in your array , you can use the odata filter as UserID eq 'Current Item from Array'

    Mira_Ghaly_4-1599711453626.png

    4.  you can use the output of the GetItems 2 in a create HTML Table and use the output in send email.

     

     

     

     

     

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard