for each(prop in document.properties["cjp:dproc_listaAImplicadas"])
{
var mail = actions.create("mail");
var groups = new Array("GROUP_"+prop);
mail.parameters.to_many=groups;
mail.parameters.subject = "Nuevo Procedimiento elaborado por el area de " + document.properties["cjp:dproc_AreaOrigen"];
mail.parameters.from = "pedro.jimenezt@xxxxxx.xx";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/notificar_grupos.ftl");
mail.parameters.text = "";
mail.execute(document);
}
var mail = actions.create("mail");
mail.parameters.to="correo@lala.es";
mail.parameters.subject = "reasignado ";
mail.parameters.from = "noreply@noreply.com";
mail.parameters.text = "hola hola hola";
mail.execute();
execute(ScriptNode node)
Executes the action against the specified node. The action (and its parameters) may be re-used against many nodes by repeatedly invoking execute. Between invocations, the parameters of the action may be changed. An example of executing the "mail" action follows:
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.