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 Apps / Power automate filter ...
Power Apps
Unanswered

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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard