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 / OData filter query - g...
Power Automate
Answered

OData filter query - get anything prior to today

(1) ShareShare
ReportReport
Posted on by 20

Hi, I need to get any records where the date is earlier than today's date. The time shouldn't matter. If it was yesterday at 11:59:59 pm, the record should still end up in the results from this query. My current query below appears to get anything in the past, including anything earlier today. How do I get anything from yesterday and prior to yesterday? I'm stuck on this one....

 

 

filterQuery.png

Categories:
  • efialttes Profile Picture
    14,756 on at
    Hi
    Is this odata filter sharepoint based?
    BR
  • admind365 Profile Picture
    20 on at

    It's in MS Automate for D365. Not related to SharePoint.

  • Verified answer
    efialttes Profile Picture
    14,756 on at
    Hi
    Have you considered using the following instead?
    StartOfDay(utcNow())
  • admind365 Profile Picture
    20 on at

    That appears to have worked! Thank you--didn't know that function existed!

  • efialttes Profile Picture
    14,756 on at
    Hi
    This link covers all currently supported functions, hope it helps in the future:

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

    Happy Flowing!

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 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard