AnsweredAssumed Answered

how to query all versions with CMIS

Question asked by germangq on Mar 1, 2019
Latest reply on Mar 7, 2019 by germangq

I'm trying to make a query to get all history version of a document, but when I use #CMIS Workbench and check the option "search all versions" it gives me an error


CMIS Exception: invalidArgument
Search all version is not supported!


 I don't know if this problem is just for the Workbench client and I still can't find the way to make a query with all history versions directly calling the repository from share.


Does anybody know if it is impossible to call all versions using CMIS and in the case that it is posible, can you help me to do it.

My query is the next

SELECT * FROM cmis:document  AS d WHERE CONTAINS(d, 'PATH:\"/app:company_home/st:sites/cm:my-site/cm:documentLibrary//*\"')

and i'm using it in an Alfresco.util.Ajax.request