Created
August 12, 2014 20:23
-
-
Save alex4u2nv/2292a4ab84119397d619 to your computer and use it in GitHub Desktop.
Import Software Engineering Space Template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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