AnsweredAssumed Answered

addAspect does not work?

Question asked by shea on Jan 28, 2010
Latest reply on Jan 31, 2011 by rrobles
Can someone please help?
I am not able to addAspect to a space using the following JavaScript:

var aspectName = "dynamic:SomeMetadata";
var result = false;
var someFolder = rootFolder.createFolder("someFolder");  <– This folder was created.
result = someFolder .addAspect(aspectName);
if (result) {
      someFolder .createFolder("success");  <– This folder was created.
} else {
      someFolder .createFolder("failed");

Did I miss anything?