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

Question

Question

Specify Folder Level to Start Repository Search

asked on September 25, 2019

Hello everybody,

 

I'm creating a Workflow repository search.  I would like to search folders starting at a particular level by number.  The LOOKIN parameter allows you to specify a root folder to search in, but I would like to add to that a subfolder level to search, like search only 3rd level subfolders beneath the LOOKIN folder.  I don't know at design-time what the subfolder names will be, I only know the level.  Also, is there a comprehensive document that describes all of the possible repository search query options?  I couldn't find one.

0 0

Answer

SELECTED ANSWER
replied on September 25, 2019

In a situation like that, you could end up having to concatenate a lot of folders together to make my suggestion work. You'd probably be better off just trying to narrow down other metadata criteria that would ensure that you're only getting what you want.

0 0

Replies

replied on September 25, 2019

Here is a comprehensive guide to advanced search syntax.

There isn't a way to specify folder depth, however you can use tokens to compose your query. If you can figure out those folders at run time, you could concatenate them together in order to together with the appropriate syntax.

Is your example of 3rd level subfolders actually what you want? I can whip up an example if you need it.

0 0
replied on September 25, 2019

Thanks for your reply Devin and for the link, very helpful.  I have a folder structure like this:

Active

- John Doe

  - SomeFolder

  - SomeOtherFolder

 

The "John Doe", SomeFolder, and SomeOtherFolder folders get created dynamically by a workflow when new documents are added to a workqueue folder.  My workflow assigns rights to the 3rd-level folders (SomeFolder, SomeOtherFolder) without knowing what the "John Doe" folder is named, could be any name.  So, my search is basically including all of the name folders and their subfolders.  I was just hoping to exclude that 2nd level of folders (the name ones) to speed things up.

0 0
SELECTED ANSWER
replied on September 25, 2019

In a situation like that, you could end up having to concatenate a lot of folders together to make my suggestion work. You'd probably be better off just trying to narrow down other metadata criteria that would ensure that you're only getting what you want.

0 0
replied on September 25, 2019

I see, I'll look more deeply into that part of it, many thanks.

 

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

Sign in to reply to this post.