05-11-2012 09:06 AM
// find the backup folder - create if not already exists
var backupFolder = space.childByNamePath("Backup");
if (backupFolder == null && space.hasPermission("CreateChildren"))
{
// create the folder for the first time
backupFolder = space.createFolder("Backup");
}
if (backupFolder != null && backupFolder.hasPermission("CreateChildren"))
{
// copy the doc into the backup folder
var copy = document.copy(backupFolder);
if (copy != null)
{
// change the name so we know it's a backup
copy.name = "Backup of " + copy.name;
copy.save();
}
}
When I deploy the workflow, I have no error.05-11-2012 09:36 AM
05-11-2012 09:39 AM
05-11-2012 10:56 AM
05-12-2012 04:54 AM
05-15-2012 11:03 AM
02-28-2013 06:26 PM
03-01-2013 04:08 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.