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 Platform Community / Forums / Power Automate / OData filter query - g...
Power Automate
Unanswered

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:
I have the same question (0)
  • 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard