cancel
Showing results for 
Search instead for 
Did you mean: 

Document Type

Not applicable

Below is the sample code from the sdk for using the DocumentQuery.ExecuteCount method.  My question is where does the documentType get defined?

// Create document query objectDocumentQuery documentQuery = app.Core.CreateDocumentQuery();// Add document type to document querydocumentQuery.AddDocumentType(documentType);// Execute querylong documentCount = documentQuery.ExecuteCount();output = String.Format("{0} Documents returned from the query. \n",    documentCount);
1 REPLY 1

Scott_Constanti
Champ in-the-making
Champ in-the-making

DocumentType documentType = app.Core.DocumentTypes.Find("Checks");

 

Pulled this from the Executing Queries section:

Home / Unity API / Programmer Guide / Performing Queries and Searches / Executing Queries

 

I am pretty sure it's not required, just used to filter the query.

"Add criteria to limit the results of the query.  The search criteria can include specific Document Types, Document Type Groups, ranges of Document IDs, Keywords, Keyword records (for Multi-Instance Keyword Type Groups), notes, and custom queries. "

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.