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

Question

Question

Find folders who's images do not have a particular template

asked on September 21, 2015

I am creating a report that searches for any "Certificate" folder that does not contain a Certificate.  I want to include a search for folders that do not hold a document that is named "Certificate*" or does not have a "Certificate" template.  I am using Advanced Search and have most of it correct, but I am struggling with the syntax for a Child Template (outlined by xxxx in this sample.

{LF:Name="*", Type="F"} & {LF:LOOKIN="LaserRepository\Contracts\Contractors\"} & {LF:Name="Certificates", Type="F"} - ({LF:ChildName="Certificate*", Type=DS} | {xxxx LF:Child template = "Certificate"xxxx})

Could someone please advise what this syntax should be and where do I find this info?  The help files did not show it and I would rather nut it out myself than ask!

0 0

Replies

replied on September 21, 2015 Show version history

The problem is finding all folders that contain a document which is (not) assigned a particular template. It's not possible to express this condition using the LF search language.

0 0
replied on September 21, 2015

Thanks Michael.

Is it possible to find all folders that do contain documents with a particular template.

i.e. is there syntax available to find a folder child with template = "Certificate"?

Similar to finding a document by name e.g. LF:ChildName="Certificate*", Type=DS.

0 0
replied on September 22, 2015

As Michael said, searching for a folder based on the template of child documents (whether by specifying "does have template X" or "does not have template X") is not supported using advanced search syntax.

There are, however, a couple ways you could accomplish this:

1) Search for the documents themselves, and use the "Path" Column to find the parent folder path

{[yourTemplateName]} & {LF:ParentName="Certificate*"}

2) Use Workflow. You could use Find Entries to retrieve the Certificates folders, then iterate through the folders to determine which ones do not contain documents with your Certificates template. I'm not an expert in Workflow, so if you have more specific questions, hopefully someone else will chime in.

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

Sign in to reply to this post.