web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter SharePoint list...
Power Automate
Unanswered

Filter SharePoint list to only include items created yesterday

(1) ShareShare
ReportReport
Posted on by 34

Hey Flow Fam,

 

Was hoping someone could help me out with a question. I a relatively new to flow without much expression experience. What I am looking to accomplish is to capture all SharePoint items in a last that have a created date from the day prior. Since its Monday today I want all items created on Sunday.

 

I will then add all of these to an HTML Table and send them via email daily. I was able to get the HTML Table to work when I was testing it but I cannot get the filter to work properly. Any suggestions/input would be very helpful!

 

I have tried a few different articles and they all give me invalid formula error. 

 

Example of some I have tried: 

addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-1)
The expression "Created gt 2020-11-29T21:27:19.0000000Z" is not valid. 

 

&

 

addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')
The expression "Created ge 2020-11-29" is not valid. Creating query failed.
 
Capture.PNG
 
 
Capture 1.PNG

 

Categories:
I have the same question (0)
  • Verified answer
    DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @seanmcev ,

     

    Just add ' '  in your expression :

    Created ge 'addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')'

     

    DeepakS_0-1606776207858.png

     

    Regards,

    DS

  • Sean McEvoy Profile Picture
    34 on at

    Hey DS,

     

    Wow, I feel silly. Thanks so much for the assist! This easily saved me a few hours. 

     

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard