Retrieve all documents version in a folder

cancel
Showing results for 
Search instead for 
Did you mean: 
anujsharma
Active Member II

Retrieve all documents version in a folder

Hi,

I need to retrieve all documents version in a folder.

For a particular document , i am able to get its all versions using below rest url

alfresco/service/api/version?nodeRef=workspace://SpacesStor‌e/ab015fa6-3cb5-4cc3‌-9847-9c79e9da0d56

how to get all versions for all documents inside a particular folder recursively ?

1 Reply
afaust
Master

Re: Retrieve all documents version in a folder

Just call the same kind of operation for each document in a folder... Use CMIS or ReST API (i.e. v1 ReST API for navigation) to recurse over folders and list their documents, and then get the versions for those.

There is no API to do what you ask in one single operation, unless you are prepared to code a new web script to provide a custom ReST API operation (Java, JavaScript and/or FreeMarker required).