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

OData Date Range

(0) ShareShare
ReportReport
Posted on by 31

I am trying to make an Odata filter that will only take data entered within the last week from my source so instead of a specific date range it is a rolling range from 'Today'.  Is that possible?

Categories:
  • Verified answer
    Ellis Karim Profile Picture
    12,288 Super User 2026 Season 2 on at

    You can use the utcNow() to get the current date and addDays() function to add or substract days from the current time.

    addDays(utcNow('yyyy-MM-dd'), -7)

    For example, in the following filter query I am searching for items that were created between today (2022-03-16) and 2022-03-09:

    Snag_7f59d55.png

    Hope this helps.

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

     

  • Cjohnson20 Profile Picture
    31 on at

    Hey Ellis.  This worked in my flow.  Thanks for the help.

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
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard