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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (18,631)