 
					
				
		
11-06-2007 09:12 AM

var stagingFolder       = companyhome.childByNamePath("Intranet/Marketing Communications/Website Documents/Staging");
var productionFolder = companyhome.childByNamePath("Intranet/Marketing Communications/Website Documents/Production");
if(stagingFolder != null)
{
   var i=0;
   var today = new Date();
   stagingChildren = stagingFolder.children;
   stagingTotal = stagingChildren.length;
   for(i=0; i<stagingTotal;i++)
   {
      child = stagingChildren[i];
      if(child.properties["cm:from"] <= today)
      {
         child.move(productionFolder);
      }
   }
} 
					
				
		
11-06-2007 09:36 AM
 
					
				
		
11-06-2007 10:33 AM

 
					
				
		
11-13-2007 07:06 AM
p.s. try to replace the blanks in your childbynamepath with "_x0020_"
e.g.:var stagingFolder = companyhome.childByNamePath("Intranet/Marketing_x0020_Communications/Website_x0020_Documents/Staging");
 
					
				
				
			
		
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.