ScriptableHashMap<String, String> listMembers()
lists the members of this project.
var persona;
var email;
var shortName= document.getSiteShortName();
var sitio = siteService.getSite(shortName);
var fecha = new Date();
var dia = fecha.getDate();
var miembrosSitio = sitio.listMembers(null,null,0);
if(siteMembers !=null){
for (userName in miembrosSitio ){
persona = people.getPerson(userName);
email = persona.properties["cm:email"];
global = persona.properties["cm:title"];
nombre = persona.properties["cm:firstName"];
if(global!= dia) {
person.properties["cm:title"]=dia;
person.save();
var mail = actions.create("mail");
mail.parameters.to = email;
mail.parameters.text = nombre + " Tiene un nuevo documento en la intranet ";
mail.parameters.subject = " Nuevo documento en la Intranet ";
mail.parameters.from = "xxxxxxxxxx@gmail.com";
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.