Skip to content

Instantly share code, notes, and snippets.

@loftux
Created June 16, 2016 11:15
Show Gist options
  • Save loftux/2e9a835e82dad76699576aa70fecc0f9 to your computer and use it in GitHub Desktop.
Save loftux/2e9a835e82dad76699576aa70fecc0f9 to your computer and use it in GitHub Desktop.
// To be used with Alfresco JS Console. Select folder in js console to create export package for
var exportaction = actions.create("export");
exportaction.parameters["store"] = "workspace://SpacesStore";
exportaction.parameters["package-name"] = space.properties.name + "_export.acp";
exportaction.parameters["destination"] = space.parent;
exportaction.parameters["include-children"] = true;
exportaction.parameters["include-self"]=true;
exportaction.parameters["encoding"]="UTF-8";
exportaction.execute(space);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment