08-22-2012 11:53 AM
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);
08-22-2012 12:00 PM
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. "
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.