As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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: