AnsweredAssumed Answered

Create new Serie using Javascript

Question asked by jordiv on Sep 8, 2011
Latest reply on Nov 2, 2011 by jordiv
Hello,

I'm trying to create a new record series in the Javascript console for testing purposes (later I want to use it in a web script).

The series gets created, but the problem is that I can't create new categories inside the series I've created (the "New Category" button is disabled).


var filePlan = companyhome.childByNamePath(space.name + "/rm/documentLibrary");
var series = filePlan.children;

var newSeries = filePlan.createFolder("Test folder");

newSeries.addAspect("{http://www.alfresco.org/model/rmcustom/1.0}customRecordSeriesProperties");
newSeries.addAspect("{http://www.alfresco.org/model/content/1.0}titled");
newSeries.addAspect("{http://www.alfresco.org/model/recordsmanagement/1.0}filePlanComponent");
newSeries.addAspect("{http://www.alfresco.org/model/recordsmanagement/1.0}recordComponentIdentifier");

Anyone knows what I'm missing?

Thanks,
Jordi.

Outcomes