01-04-2012 07:38 AM
01-06-2012 07:40 AM
text = templateService.processTemplate("freemarker", templateRef.toString(), model);3. Create a webscript which you will call from Share, which will call the custom email action.01-06-2012 08:35 AM
var mail = actions.create("mail");
mail.parameters.to = "emailID";
var document_name= node.properties["cm:name"];
mail.parameters.subject = loggedinuser+" has recommended "+document_name;
var text= loggedinuser+" has recommended "+document_name+" document to you";
text += "\n"+"Comment provided:::"+comment;
mail.parameters.text = text;
logger.log("Body is "+mail.parameters.text);
mail.execute(companyhome);01-08-2012 09:58 AM
But now I have to send it with Email Template like notify-email.ftl (of share which is the template for invite user on site). I checked that code but unable to understand and in that code invite user name is not passed to the template but I want to pass document name to the template, Please guide me how to do that ?You can pass the email template as the parameter in your custom email action.
Also how to call java class from share (presentation webscript) —> datawebscript(Which calls javaclass for email sending) —> javaclass (which I have to call for email sending with custom email template) ?
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.