You are viewing limited content. For full access, please sign in.

Question

Question

Advanced search query for retreiving documents inside particular subfolder

asked on January 30, 2021

Hi All,

I have a problem in creating a query to retreive all the documents.

 

The above is my folder structure. I want to retrieve all documents inside Testing Folder. The Value Apple,Banana,carrot is dynamic and will change. I want all the documents inside Testing folder and its subfolders. Please help.

 

Here is my Query : -

{LF:LOOKIN="Dev\Sample Documents"}&{LF:ParentName="Testing"}

1 0

Answer

SELECTED ANSWER
replied on February 8, 2021

I recently had to tackle something similar and got really stumped on the fact that wildcards don't work within the LF:LOOKIN= search - it would be so much simpler if it could, but I haven't found anything indicating that it can.

In my case, I was working in LFWorkflow (and I assume you are as well based on the tags on your post), and that opens up being able to use tokens from earlier activities.

I first found all the top-level folders I needed to search within.  In your example, this should do it:   {LF:LOOKIN="Dev\Sample Documents"}&{LF:Name="Testing", Type="F"}

Then do a "For Each Entry" on the search results.  Within the "For Each Entry", do another search that searches based on the token path of the current entry - something like this:   {LF:LOOKIN="%(ForEachEntry_CurrentEntry_FullPath)"}

     

3 0
replied on February 8, 2021

Thank you so Much!! It's Working :)

1 0
replied on February 9, 2021

Glad to hear it!

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.