# CmisQuery

A query to run to retrieve documents from the repository. By default, the CMIS Connector crawls the repository to extract data. If you would prefer to run a query to identify the documents to ingest, use this parameter to specify the query.

NOTE: The query must return the following fields:

- `cmis:objectId`
- `cmis:objectTypeId`
- `cmis:baseTypeId`
- any field specified by CmisQueryPageField

Ingested documents contain all available fields. The query is used to identify the documents to ingest.

Type: | String
Default: |
Required: | No
Configuration Section: | TaskName or FetchTasks or Default
Example: | `CmisQuery=SELECT * FROM cmis:document` or `CmisQuery=SELECT cmis:objectId, cmis:objectTypeId, cmis:baseTypeId, cmis:creationDate FROM cmis:document`
See Also: | CmisQueryPageField

_FT_HTML5_bannerTitle.htm