cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gaherrick
New Member

SharePoint Get Items query filter (OData) - Need to send a weekly summary email

I have a Flow set up where a MS Form response populates a SharePoint List. I need to then set up a flow to send an email with a summary of items from the list for the current week and a next week lookahead. Anyone know how I can write the OData query for the Get Items action to filter the SharePoint List to show only this week and/or next week? thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @gaherrick ,

 

Please try the following configuration:

211.PNG212.PNG

You could paste the following expression to Filter Query:

Created lt '@{utcNow('yyyy-MM-ddTHH:mm:ssZ')}' and Created ge '@{addDays(utcNow(),-7,'yyyy-MM-ddTHH:mm:ssZ')}'

 

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

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @gaherrick ,

 

Please try the following configuration:

211.PNG212.PNG

You could paste the following expression to Filter Query:

Created lt '@{utcNow('yyyy-MM-ddTHH:mm:ssZ')}' and Created ge '@{addDays(utcNow(),-7,'yyyy-MM-ddTHH:mm:ssZ')}'

 

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,852)