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 Automate / Filter SharePoint list...
Power Automate
Answered

Filter SharePoint list for last 24 Hours using OData

(0) ShareShare
ReportReport
Posted on by 32

Hi 

 

I am gathering a Defect Log in SharePoint using a PowerApp. We get around 100-200 Defects everyday running in two shifts. Every morning around 6:30 AM, I like to sent a report of the Defects logged in the last 24 hours. I understand we can use the "Get Items" from SharePoint and Filter based on OData. What would be the formula to filter for last 24 hours. The date field is "Created" auto-generated by SharePoint. Please advise

Categories:
  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @MasthanAbukani 

     

    Can you try the following:

    Created gt DateTime'expression' 

    Expression:
    addDays(utcNow(), -1)

     

    Let me know what you got after trying.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

     

  • MasthanAbukani Profile Picture
    32 on at

    I tried something similar earlier with the date format included in UTC(). I got an error.

     

    I tried now like you suggested and got the message

    Createted gt AddDays(utcNow(), -1)

     

    and got the below message. is it something to do with the date format between Flow and SharePoint? 

     

    The expression "Created gt 2020-06-01T18:57:27.1389948Z" is not valid. Creating query failed.

  • The_blue Profile Picture
    116 on at

    Hi, just looking up the same problem and got to this post. 

     

    Add the words DateTime and wrap the expression in ' ' 

     

     

    Mine is:- Modified gt DateTime'@{addDays(utcNow(),-1)}'

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard