Hi there I have a SharePoint list with 2 date columns, Datefrom and DateTo...
When I use the Get Items connector, I can get everything DateFrom or list everything just using DateTo. But trying to get every in-between isn't working?
Here is my filter....
DateFrom ge '@{variables('WeekStart')}' and DateTo le '@{variables('WeekEnd')}'
The variables for WeekStart and WeekEnd are outputted in the query as...
DateFrom ge '2022-07-14T15:40:58.2178864Z' and DateTo le '2022-07-18T15:40:58.2803909Z'
yet despite there being records between these dates, nothing shows. If I leave out the and clause and just have DateFrom, it will list everything in the future just fine. But when adding the le from DateTo it doesn't find anything?
Here are my Sharepoint columns, I thought the space between might causing issues but DatefromDateto works just fine when querying in isolation.
Solved! Go to Solution.
I could be misunderstanding, but your "Date from" shows as 11 July. Your query asks for anything where the date from is greater than or equal to 14 July. The items that you have highlighted does not match your criteria.
Also, you might want to format your dates as yyyy-MM-dd so as not to include the time.
I could be misunderstanding, but your "Date from" shows as 11 July. Your query asks for anything where the date from is greater than or equal to 14 July. The items that you have highlighted does not match your criteria.
Also, you might want to format your dates as yyyy-MM-dd so as not to include the time.
Thanks, good shout on the date format.
User | Count |
---|---|
93 | |
45 | |
19 | |
18 | |
15 |
User | Count |
---|---|
137 | |
54 | |
42 | |
41 | |
30 |