05-08-2014 02:57 AM
05-08-2014 07:21 AM
05-09-2014 01:44 AM
05-19-2014 05:52 AM
var gens = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/content/1.0}person\"");
var index;
for(index=0;index<gens.length;++index)
{
if(gens[index].properties["cm:userName"]=="nazeers")
{
gens[index].properties["email"]="sameer@gmail.com";
gens[index].save();
}
}
05-19-2014 06:24 AM
05-19-2014 07:10 AM
05-19-2014 08:44 AM
var doc = search.luceneSearch('@cm\\:name:"usersMails.csv"')[0];
var docText = doc.content;
var lines = docText.split("\n");
for(var i=0; i<lines.length; i++){
var userMailId = lines[i].split(",");
var userName = userMailId[0];
var mailId = userMailId[1];
var user = people.getPerson(userName);
user.properties["email"]=mailId;
user.save();
}
05-19-2014 09:56 AM
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.