In a workflow, I was able to successfully query documents in a folder, containing more than one file, and modified in the last day as follows:
{LF:Name="*", Type="DB"} & {LF:Modified>%(DateTokenCalculator_Date - 1 Day)} & {LF:LOOKIN="<REPOSITORY NAME>\%(ForEachFolder_CurrentEntry_FullPath)"}
The Date - 1 Day date token was calculated by taking a Custom Date and subtracting 1 day.
However, I want to do a search for documents modified in the last couple of hours. I tried creating a date token for this by taking a Custom Date and Time and subtracting two hours (as well as just Custom Time), but when I run this query instead, I'm presented with the following:
2015-04-20 9:42:15 PM | Search For Recent files | A syntax error was encountered while processing the search or query statement. [9084] |
Can anyone think of any reason why my query would work with a custom token subtracting one day, versus a custom token subtracting a couple of hours?
Thanks to anyone who can help!
Marty Gaffney - Network Technician
Town of Okotoks