Search code examples
vb.netfilenet-p8filenet-content-engine

Retrieve a document class-description symbolicName without fetching


I'm triying to retrieve a ClassDescription symbolicName of an IDocument object. It seems that i have to fetch its ClassDescription even if I just want the symbolicName.

Is there a way to do it ? I just want to avoid doing a fetch for every browsed document...

(Also IDocument.GetClassName doesn't help, it returns "Document")


Solution

  • I finally found a way, by making an SQL SELECT request retrieving the classDescription ID (which is not the symbolicName ID, but rather an "internal" one) :

    Select This, d.Id, d.ClassDescription
    From Document d
    where d.Id = ID
    

    It seems to be lighter than a line like document.fetch(classDescription) (pseudo call) cause it should just retrieves the ID.