09-10-2009 07:19 AM
var activeFolder = space;
var archivedFolder = space.parent.childByNamePath("4 - History");
var i=0;
var today = new Date();
if(activeFolder != null) {
activeChildren = activeFolder.children;
activeTotal = activeChildren.length;
for(i=0; i<activeTotal; i++) {
child = activeChildren[i];
if(child.properties["cm:to"] <= today) {
child.move(archivedFolder);
}
}
}
09-10-2009 08:23 AM
09-10-2009 09:52 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.