Query List for not modified items

  • 29 December 2016
  • 3 replies
  • 0 views

Badge +1

How do i query a list with all files that has not been modified today using a site workflow.


3 replies

Userlevel 5
Badge +14

eg. like this

Badge +1

I tried the above with the below query:

<Query>
<Lists>
<List ID="{5444317A-12F7-4777-A30F-23173306BCED}" />
</Lists>
<ViewFields>
<FieldRef Name="ID" />
</ViewFields>
<Where>
<Neq>
<FieldRef Name="Modified" />
<Value Type="DateTime">Today</Value>
</Neq>
</Where>
</Query>

However It returned me list of all files instead of files not modified Today. Let me know if i am doing something wrong.

Also If i use "Less Than" filter it returned me no result.

Userlevel 5
Badge +14

check the screenshot more carefully, it has to be CAML element

<Today />

Reply