03-29-2011 01:35 PM
if (document.type == ???){
// create mail action
var mail = actions.create("mail");
mail.parameters.to = "me@mydomain.com";
mail.parameters.subject = "Hello from JavaScript";
mail.parameters.from = "alfresco@alfresco.com";
mail.parameters.text = "new post";
// execute action against a document
}else{
mail.parameters.text = "new comment";
}
mail.execute(doc);
03-31-2011 04:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.