cancel
Showing results for 
Search instead for 
Did you mean: 

VersionModel : getDescription() does not work ?

zyx974_
Confirmed Champ
Confirmed Champ

Hi,

I want to use a listener to delete automaticaly old archived version (autoversionning is activated) which do not have a comment when a user increment the version. Unfortunately, the method getDescription() of VersionModel always returns a null String :

DocumentRef docRef = model.getRef();
CoreSession session = model.getCoreSession();
List<VersionModel> versions = session.getVersionsForDocument(docRef);
for (VersionModel currentVersion : versions) {
	String desc = currentVersion.getDescription();
    //desc is always null
    ...
}

Is this the good way to do or is this a bug ?

Thanks.

1 REPLY 1

zyx974_
Confirmed Champ
Confirmed Champ

Hi,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.