AnsweredAssumed Answered

Get version in rule

Question asked by robby on Feb 3, 2009
Hi all,
i have a rule triggered by inbox/update content, that run a script.
I want to be able to rename the content with the version Eg. ContentName(Version)       Test1.0
It's possible get version of a document?
In the script i write:

document.name =  document.properties['props1'] + document.properties['props2'] + document.properties['cm:versionLabel'];
document.save();
For new document the version are Null and in update the version is the previus.

All suggestions are welcome.

Regards

Roberto.

Outcomes