Update the Contact Email with developer Console:
list<Contact> conOldList = [select id, email from contact where email!=null and (not(email like '%preprod'))Limit 4000];
list<Contact> conList = new list <Contact>();
for(contact ct: conOldList){
ct.email += '.preprod';
conList.add(ct);
}
update conList;
list<Contact> conOldList = [select id, email from contact where email!=null and (not(email like '%preprod'))Limit 4000];
list<Contact> conList = new list <Contact>();
for(contact ct: conOldList){
ct.email += '.preprod';
conList.add(ct);
}
update conList;
No comments:
Post a Comment