10-06-2015 07:42 PM
var resultNode = search.findNode("workspace://SpacesStore/" + "6e5dabc3-fe8a-4c5e-b470-5c2484720e45");
var versionHistory = resultNode.versionHistory;
var majorVersion = 1.0;
var sourceVersion;
for (i = 0; i < versionHistory.length; i++) {
var version = versionHistory;
if (version.label == majorVersion) {
sourceVersion = version;
break;
}
}
var historyNode = search.findNode(sourceVersion.nodeRef);
var workingCopy = resultNode.checkout();
workingCopy.content = sourceVersion.content;
workingCopy.checkin("Major Version", true);
10-08-2015 08:05 AM
Tags
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.