cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msflowuser4
New Member

Using Flow to combine multiple values from SharePoint list into single notification email

I have a large SharePoint list that contains expiry dates for items. I'm looking to create a flow that scans the list daily and emails expiry notifications 2 weeks prior and also on the expiry date.

 

I've got this to work, but it's sending out a separate email for each item. When there are multiple expirys on the same day, I want the flow to combine these in a single email. I believe I need to use the Create HTML Table function, but i've played around with it for hours and cannot figure it out. Any help is much appreciated! Below is the working flow that currently sends out separate emails:

 

https://imgur.com/a/NKhaqsh

1 REPLY 1
rebeccas
Community Champion
Community Champion

Have your Get Items filter out the date you are looking for in the Filter Query section and then add in a "Compose" and in the Input for that put this expression:

 

length(body('Get_items')?['value'])

 

Then you can refer to that Compose in the email and it is counting for you how many items pull in for your Get Items function.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (3,364)