I am using JavaScript to dynamically include space templates, but am getting a reference to the space template and not a copy. In other words when I add content into the copied space, the item also appears in the template space.
templateProject is a Space Template in the Data Dictionary
destinationSpace is the folder where I want the template copied to
//Copy the template project into the destination space
var newProjectSpace = templateProject.copy(destinationSpace);
Any ideas?