Skip to content

Instantly share code, notes, and snippets.

@alex4u2nv
Created August 12, 2014 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex4u2nv/2292a4ab84119397d619 to your computer and use it in GitHub Desktop.
Save alex4u2nv/2292a4ab84119397d619 to your computer and use it in GitHub Desktop.
Import Software Engineering Space Template.js
var mQuery = {
query: "select * from cmis:folder where contains " +
"('PATH:\"/app:company_home/app:dictionary/app:space_templates/*\"') " +
"and cmis:name='Software Engineering Project'",
language: "cmis-alfresco"
};
var results = search.query(mQuery);
//copy the template into our Document Folder
try {
var copy = results[0].copy(document,true);
} catch (e) {
logger.log(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment