11-09-2015 07:54 AM
var docyear = "Year " + document.properties["co1:year"];
var destNode1 = document.parent;
var destNode2 = space.childByNamePath(docyear);
var SourceNode = companyhome.childByNamePath("Data Dictionary/Space Templates/hr-year"); // container with pre-designed folder structure
if (destNode2 === null || destNode2.length === 0)
{
//creates folder and moves document
var newNode = SourceNode.copy(destNode1, true);
newNode.name = docyear;
document.move(newNode);
document.save();
}
else {
//moves document to already present container
document.move(destNode2);
document.save();
}
}
11-09-2015 02:41 PM
11-10-2015 08:46 PM
11-13-2015 09:29 AM
11-18-2015 01:58 PM
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.