cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
admind365
Regular Visitor

OData filter query - get anything prior to today

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

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: OData filter query - get anything prior to today

Hi
Have you considered using the following instead?
StartOfDay(utcNow())


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: OData filter query - get anything prior to today

Hi
Is this odata filter sharepoint based?
BR


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



admind365
Regular Visitor

Re: OData filter query - get anything prior to today

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

Dual Super User
Dual Super User

Re: OData filter query - get anything prior to today

Hi
Have you considered using the following instead?
StartOfDay(utcNow())


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

admind365
Regular Visitor

Re: OData filter query - get anything prior to today

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

Dual Super User
Dual Super User

Re: OData filter query - get anything prior to today

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!


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,370)