Valid CMIS query

2k 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 best solutions below

1
On BEST ANSWER

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