cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
efialttes
Super User
Super User

ODATA to filter Get Items Sharepoint: DateTime values

Hi all 

I am trying to get items from a Sharepoint list matching a specific rule, so a date from a column called 'LastHistoryUpdate' shall be equal or greater than 1st of October.

 

I've tried with the following ODATA expressions, however, Flow does not include in the response the only item from the List where 'LastHistoryUpdate' is set to 1st of October (2018-10-01 as shown in the screenshot).

 

 
LastHistoryUpdate ge '2018-10-01T00:00:00.0000000Z'
 
LastHistoryUpdate ge datetime'2018-10-01T00:00:00.0000000Z'

 

Sure there must be a workaround by using Filter Array instead, but due to efficiency reasons I need to solve it via ODATA filter (as explained at https://docs.microsoft.com/en-us/previous-versions/dynamicsnav-2016/hh169248(v=nav.90)

 

Suggestions are welcome!

 

ODATA_filure.png

 



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!



1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @efialttes,

 

I have made a test on my side and don't have the issue that you mentioned.

 

The expression LastHistoryUpdate ge '2018-10-01T00:00:00.0000000Z'  is worked on my side.

 

The screenshot of my flow as below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

Please make sure you list have items that meet the condition in the Filter Query.

 

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
v-yuazh-msft
Community Support
Community Support

Hi @efialttes,

 

I have made a test on my side and don't have the issue that you mentioned.

 

The expression LastHistoryUpdate ge '2018-10-01T00:00:00.0000000Z'  is worked on my side.

 

The screenshot of my flow as below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

Please make sure you list have items that meet the condition in the Filter Query.

 

 

Best regards,

Alice

View solution in original post

Doesn't seem to work for me still. Am I missing something?

 

The expression "DateCompleted gt 2021-03-05T13:38:17.1206219" is not valid. Creating query failed.
clientRequestId: 91d0a099-a2fa-45c4-91a8-5d8140a6d91b
serviceRequestId: 91d0a099-a2fa-45c4-91a8-5d8140a6d91b

Hi!

You missed the single quotes

DateCompleted gt '2021-03-05T13:38:17.1206219'



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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,025)