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

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
efialttes
Super User III
Super User III

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!



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

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

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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (30,012)