01-20-2017 02:05 AM
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://SpacesStore/ab015fa6-3cb5-4cc3-9847-9c79e9da0d56
how to get all versions for all documents inside a particular folder recursively ?
01-22-2017 09:15 AM
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).
Explore our Alfresco products with the links below. Use labels to filter content by product module.