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 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:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,695 Super User 2025 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard