01-18-2017 10:25 AM
Hi,
How can we retrieve all documents version in alfresco.
Can we find which folder has document versioning in it ?
Thanks
01-18-2017 10:57 AM
the folder itself does not have that kind of info. but you can iterate through all the children and sort out which ones have the cm:versionable aspect.
you could do a search like this (admin tools -> node browser -> search engine lucene:
PATH:"/app:company_home/st:sites/cm:yourSite/cm:documentLibrary/*" and ASPECT:"cm:versionable"
it will show you the path/parent in the search results, so you might be able to sort this out with a text editor
01-18-2017 10:36 AM
Hi
Check out this blog post. Jared shows how to iterate through each version of a single document:
Alfresco: Max Version Policy – I exist as I am
Can you elaborate what you mean by "Can we find which folder has document versioning in it ?"
01-18-2017 10:44 AM
Under 'Sites' , i have subfolders
I mean: Is it possible to find which subfolder contains versioned document ?
01-18-2017 10:57 AM
the folder itself does not have that kind of info. but you can iterate through all the children and sort out which ones have the cm:versionable aspect.
you could do a search like this (admin tools -> node browser -> search engine lucene:
PATH:"/app:company_home/st:sites/cm:yourSite/cm:documentLibrary/*" and ASPECT:"cm:versionable"
it will show you the path/parent in the search results, so you might be able to sort this out with a text editor
01-18-2017 11:05 AM
Thanks Marcus
Explore our Alfresco products with the links below. Use labels to filter content by product module.