Retrieve the all documents version in alfresco

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

Retrieve the all documents version in alfresco

Jump to solution

Hi,

How can we retrieve all documents version in alfresco.

Can we find which folder has document versioning in it ?


Thanks

1 Solution

Accepted Solutions
mrks_js1
Established Member II

Re: Retrieve the all documents version in alfresco

Jump to solution

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 solution in original post

4 Replies
mrks_js1
Established Member II

Re: Retrieve the all documents version in alfresco

Jump to solution

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

anujsharma
Active Member II

Re: Retrieve the all documents version in alfresco

Jump to solution

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

mrks_js1
Established Member II

Re: Retrieve the all documents version in alfresco

Jump to solution

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

anujsharma
Active Member II

Re: Retrieve the all documents version in alfresco

Jump to solution

Thanks Marcus Smiley Happy