cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User III
Dual Super User III

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
Highlighted
Dual Super User III
Dual Super User III

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!



Highlighted
Regular Visitor

Re: OData filter query - get anything prior to today

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

Highlighted
Dual Super User III
Dual Super User III

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

Highlighted
Regular Visitor

Re: OData filter query - get anything prior to today

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

Highlighted
Dual Super User III
Dual Super User III

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

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,358)