I have a simple search syntax tested and copied directly from the Webclient that works great in the "search repository tool". It comes back with a results count when I tested it.
This is the Search Syntax:
{LF:Created>="7-3-2023", Created<="8-3-2023"} & ({LF:Creator="TRIBENET\hayleeglasscock"})
In workflow, I am using the "Generate Laserfiche Web Client URL" tool with the syntax above by using tokens in my workflow.
Search Syntax: {LF:Created>="%(DateTokenCalculator_MONTH)", Created<="%(Date)"}& ({LF:Creator="%(User1)"})
The search works fine with the date created portion alone. But if I add the Username part then I have no results found. I have tried testing this by forcing the username in the syntax and several variations. After looking into it further, When I test the search URL the search syntax changes. By placing a forward slash(/) instead of a backslash(\) required to search by a domain user. See below.
{LF:Created>="7/1/2023", Created<="8/3/2023"} & ({LF:Creator="TRIBENET/hayleeglasscock"})
How do I keep this from transposing the slash? I tried these variations:
1. Used the token from the workflow
{LF:Created>="%(DateTokenCalculator_MONTH)", Created<="%(Date)"}& ({LF:Creator="%(User1)"})
2. Split the token after the \ and statically kept the domain name and slash
{LF:Created>="%(DateTokenCalculator_MONTH)", Created<="%(Date)"}& ({LF:Creator="TRIBENET\%(User1#@Split(\)@#)"})
3. Forced the domain name in the search.
{LF:Created>="7/1/2023", Created<="8/3/2023"} & ({LF:Creator="TRIBENET/hayleeglasscock"})
All three ways still transpose the slash when the search is run.