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
Dual Super User
Dual 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?

Dual Super User
Dual 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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (8,177)