You are here

createVersion

createVersion(history, major) this method creates a version snapshot of the current document.

Note: this will add the cm:versionable aspect.

Parameters

history
Version history note. A description of the change made.
major
True to save as a major version increment, false for minor version.

Returns

Returns a ScriptVersion object for the new version of the document.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.