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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,647)