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 / What is the ODATA filt...
Power Automate
Answered

What is the ODATA filter to return files created after a specific date?

(0) ShareShare
ReportReport
Posted on by 53

Hello!

 

What is the ODATA filter to return files created after a specific date?

 

I am struggling to find the right syntax. Is there a reference? Pity that Microsoft does not offer an autocomplete!

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Gopala_Krishna Profile Picture
    1,495 on at

    @PowerAutomate3 

    To return the files that are created after a specific date you can use the filter 

     

    Created ge 'DateValue'

     

    Usually all the dates in SharePoint  are stored in UTC time, so when you are trying to do a comparison you must ensure that the date value that you are specifying is according to the UTC time and the date time value must be in format yyyy-MM-ddThh:mm:ssZ

     

    to format datetime values in Power Automate you can make use of the format date time expression

    formatDateTime('datetime value to be formatted','format')

     

    Ex: Consider I want to retrieve all the files from SharePoint document library that are created after 10th October 2021

     

    Filter query for the above statement would look as follows

    Created ge '2021-10-10T00:00:00Z' (you can insert date value either manually or dynamically using Power Automate expressions)

     

    Gopala_Krishna_0-1634441474659.png

    formatDateTime(utcNow(),'yyyy-MM-ddThh:mm:ss') - Expression used.
     
    For more information on ODATA filter query - Link
    For information related to the formatDateTime expression - Link
     

    ------------------------------------------------------------------------------------------------------------------------------

    If the information shared helps, please consider giving a thumbs up  👍 and mark solution as resolved

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard