cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ramon3
Regular Visitor

filter current week items, sharepoint list.

hello everyone can someone help me with the following situation, I have a sharepoint list, with my activities, where I have the due date and would like to receive an email every Monday with the activities planned for that week, I tried use the Odata filter but it didn't work.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Ramon3 

 

Follow the below steps:

 

image.png

 

Above Filter Query I have mapped the From Date and To Date under the condition.

 

For the above From Date Expression is as follows:

 

formatDateTime(utcNow(),'yyyy-MM-dd 00:00:00')

 

For the To Date I have added another 7 days for a week. Change the formula accordingly. See below expression.

 

formatDateTime(addDays(utcNow(),7),'yyyy-MM-dd 23:59:59')

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @Ramon3 

 

Please have a look at my tutorial video how to filter SharePoint Dates.

 

https://www.youtube.com/watch?v=FRKtB37hJ4g&t=122s

 

In your case use the scheduled trigger, select your time zone.

 

image.png

 

For the filter query you need to use utcNow(), formatDateTime(), addDays() (add 7 or 5 days it depends) expressions to set the dates for the comparisons.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Ramon3
Regular Visitor

congratulations for the video, but could you help me, as would the function to filter the items that will expire in the current week, my week starts on Monday, and I have the due date of the tasks.

Hi @Ramon3 

 

Follow the below steps:

 

image.png

 

Above Filter Query I have mapped the From Date and To Date under the condition.

 

For the above From Date Expression is as follows:

 

formatDateTime(utcNow(),'yyyy-MM-dd 00:00:00')

 

For the To Date I have added another 7 days for a week. Change the formula accordingly. See below expression.

 

formatDateTime(addDays(utcNow(),7),'yyyy-MM-dd 23:59:59')

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

Ramon3
Regular Visitor

Thanks, it worked really well.

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,777)