12-21-2011 05:24 AM
12-22-2011 05:47 AM
06-25-2012 06:29 AM
06-25-2012 06:54 AM
var subFolderName = "Output";
var subFolder = companyhome.childByNamePath(subFolderName);
if (subFolder == undefined || !subFolder.isContainer)
{
subFolder = companyhome.createFolder(subFolderName);
}
var name = document.name.toString();
var id = name.substring(0,name.lastIndexOf("_"));
var destFolder = subFolder.childByNamePath(id);
if (destFolder == undefined || !destFolder.isContainer)
{
destFolder = subFolder.createFolder(id);
}
var type = "application/pdf";
var newDocument = document.transformDocument(type);
newDocument.move(destFolder);
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.