01-20-2012 08:35 AM
01-24-2012 03:37 AM
01-24-2012 03:48 PM
logger.log("========================");
if (document!=null){
// DOCUMENT NAME
logger.log(document.name);
// A. FIND THE FOLDER WITH mpl:issueFolder ASPECT
logger.log(" ### Find the folder that has mpl:issueFolder aspect");
var issueFolder = document.parent;
while (issueFolder!= null && !issueFolder.hasAspect("mpl:issueFolder")){
issueFolder = issueFolder.parent;
if (issueFolder != null)
logger.log(issueFolder.name);
}
if (issueFolder != null){
// B. INCREASE THE VERSION
if (issueFolder!=null){
issueFolder.properties["mpl:param"] += " document.name";
issueFolder.save();
}
} else {
logger.log(" !!! Folder not found");
}
logger.log("========================");
} else {
logger.log("DOCUMENT IS NULL")
}
01-24-2012 07:20 PM
01-25-2012 01:35 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.