Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Run in developer console anonymous code
List<Account> accList = [SELECT id,type,customer_type__c FROM account WHERE type!=null LIMIT 200];
for(account a:accList){
a.customer_type__c = a.type;
update accList;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment