cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

When new items are created send an E-Mail with the list

Hey, 

 

I want to create a flow which sends daily an e-mail with the list of the new created items. 

This flow sends all items, is there any solution for a condition? 

 

Thanks!

 

amk.jpg

3 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User II
Dual Super User II

Re: When new items are created send an E-Mail with the list

You would need to add an Odata filter to your Get-items to check that the created date is within the last 24 hours. Otherwise that looks to be about the right flow.  Here's what you need.

 

1) add a compose action to generate a DateTime timespan that is 24 hours in the past in UTC.  Use this formula.

addDays(utcNow(),-1)

2) add the following to the Odata query line in your Get Items

Created gt datetime'[Output from Compose above]'

That will retrieve all the items created in the last 24 hours.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Super User III
Super User III

Re: When new items are created send an E-Mail with the list

@Muni1996 

Another "low tech" solution might be to simply create an alert on the library that fires when a new item/document is created.  Configure the alert to send a daily summary.   No need for a Flow if you leverage this out of the box SharePoint feature.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Community Support
Community Support

Re: When new items are created send an E-Mail with the list

Hi @Muni1996 ,

 

Have your problem been solved?

As @Pstork1  said, you could add filter query for the "Get items" action, and the screenshot of the action should as below:

1.png

 

Please let me know if your problem could be solved.

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User II
Dual Super User II

Re: When new items are created send an E-Mail with the list

You would need to add an Odata filter to your Get-items to check that the created date is within the last 24 hours. Otherwise that looks to be about the right flow.  Here's what you need.

 

1) add a compose action to generate a DateTime timespan that is 24 hours in the past in UTC.  Use this formula.

addDays(utcNow(),-1)

2) add the following to the Odata query line in your Get Items

Created gt datetime'[Output from Compose above]'

That will retrieve all the items created in the last 24 hours.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Super User III
Super User III

Re: When new items are created send an E-Mail with the list

@Muni1996 

Another "low tech" solution might be to simply create an alert on the library that fires when a new item/document is created.  Configure the alert to send a daily summary.   No need for a Flow if you leverage this out of the box SharePoint feature.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Community Support
Community Support

Re: When new items are created send an E-Mail with the list

Hi @Muni1996 ,

 

Have your problem been solved?

As @Pstork1  said, you could add filter query for the "Get items" action, and the screenshot of the action should as below:

1.png

 

Please let me know if your problem could be solved.

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,478)