cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CameronTCD
Level: Powered On

Get sharepoint list items that were created in the past week.

Hello

 

I look to have an email sent every Friday to myself at 0800.

The email will include the number of sharepoint list items created. 

 

I want to filter this by sharepoint list items created within the last 7 day period of when the email gets sent.

This is where I am struggling.

 

Help would be much appreciated.

 

Below is my flow in its current state.

 

Compliance.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Get sharepoint list items that were created in the past week.

Hi @CameronTCD ,

 

  • Please try using Filter array to filter out newly created items in a week.
  • Then use length() function to get the length of the array, which is the number of items.
  • Consider using Condition to determine the number of items, and send the message when it is greater than 0.

Expression reference:

@greater(item()?['Created'], addDays(utcNow(), -7, 'yyyy-MM-dd'))

Image reference:

9.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
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

4 REPLIES 4
Super User
Super User

Re: Get sharepoint list items that were created in the past week.

Hi @CameronTCD 

 

Please refer to the screenshots below:

flowww.png

 

flooow.png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

CameronTCD
Level: Powered On

Re: Get sharepoint list items that were created in the past week.

Thank you!

 

What is in the 'initialise varibale' though?

Super User
Super User

Re: Get sharepoint list items that were created in the past week.

@CameronTCD 

 

Nothing. You can leave it blank.

Community Support Team
Community Support Team

Re: Get sharepoint list items that were created in the past week.

Hi @CameronTCD ,

 

  • Please try using Filter array to filter out newly created items in a week.
  • Then use length() function to get the length of the array, which is the number of items.
  • Consider using Condition to determine the number of items, and send the message when it is greater than 0.

Expression reference:

@greater(item()?['Created'], addDays(utcNow(), -7, 'yyyy-MM-dd'))

Image reference:

9.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 317 members 1,624 guests
Please welcome our newest community members: