cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve the all documents version in alfresco

anujsharma
Confirmed Champ
Confirmed Champ

Hi,

How can we retrieve all documents version in alfresco.

Can we find which folder has document versioning in it ?


Thanks

1 ACCEPTED ANSWER

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

View answer in original post

4 REPLIES 4

mrks_js1
Star Contributor
Star Contributor

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 ?"

Under 'Sites' , i have subfolders
I mean: Is it possible to find which subfolder contains versioned document ?

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

Thanks Marcus Smiley Happy