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

Sharepoint Get Items for Today's Date (Filter Query)

I have a powerapp that saves data into a Sharepoint list with a Date column. I'm trying to build a flow that sends out data from that list at the end of each night for the day. So it's essentially a scheduled flow that runs every night at 10PM, pulls the records for that day and sends an email with various items recorded on those days. 

 

I assume I have to put something in the Filter Query but I'm not clear on how to filter for a specific date, or 'todays' date? 

 

kdillon_0-1618584598700.png

 

Any help would be appreciated. 

 

Thanks

1 REPLY 1
fchopo
Super User II
Super User II

Hi @kdillon 

In the Filter Query field you could add something like:

created le 'formatDateTime(utcNow(),'yyyy-MM-dd')' and created gt 'formatDateTime(addDays(utcNow(),-1),'yyyy-MM-dd')

Which means that created date (in SP list) should be less or equals to today at 0h and greater than yesterday 

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

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,921)