Valid CMIS query

1.9k views Asked by At

I work with Alfresco and OpenCMIS and want get folder and documents.

Query:

SELECT D.cmis:objectId, F.cmis:objectId 
FROM cmis:folder AS F JOIN cmis:document AS D 
WHERE IN_FOLDER('"+ folderId +"') 
AND cmis:name like '%name%'"

but it doesn't work. Please help me write valid query.

1

There are 1 answers

1
Florian Müller On BEST ANSWER

You cannot query folders and documents with the same CMIS query. You have to split it into two queries.