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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power automate filter ...
Power Apps
Answered

Power automate filter query last 24 hours or yesterday

(0) ShareShare
ReportReport
Posted on by 4

I am trying to set up a simple email report to be sent out 1x a day in the morning with all new items from a SharePoint list, either in the past 24h or the day before. Would anyone be able to help a beginner?

 

In the GetItems filter query, I have tried both addDays(...) with "yyyy-mm-dd" and formatDateTime(getPastTime(...)) with "yyyy-MM-ddTHH:mm:ss" and I keep getting the error: 

The expression "Date Created ge '2023-11-19T09:28:03'" is not valid. Creating query failed.
clientRequestId: 9e74da3c-f876-4d23-8174-a8b8f421063c
serviceRequestId: 9e74da3c-f876-4d23-8174-a8b8f421063c

When I changed the column name to the backend name "_DCDateCreated" it returned the error "column does not exist"

My Sharepoint settings are English (UK) with dd-mm-yyyy format, and my current UTC is +1.

 

andr_n_0-1700429786609.png

andr_n_1-1700429890849.png

andr_n_3-1700430088353.png

OR 

andr_n_4-1700430224670.png

 

andr_n_2-1700429970016.png

 

Thank you for any tips on fixing this!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @andr_n ,

     

    Please try this expression.

    Created ge ***

     

    vxiaochenmsft_0-1700444096848.png

     

    Best Regards,

    Wearsky

  • andr_n Profile Picture
    4 on at

    @v-xiaochen-msft 

     

    Thank you very much Wearsky, you made my day! I confirm this is now running smoothly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard