la persona a quien se envia el mail depende de una propiedad del propio espacio que tendria que leer automaticamente.
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);
}
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.