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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,819)