Monday 18 July 2016

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 conLi
st;

No comments:

Post a Comment

Batch Apex

1. What are transaction limits in apex? Total number of SOQL queries issued1 - 100 Total number of records retrieved by SOQL queries - 50...