Skip to content

Instantly share code, notes, and snippets.

@sfdcfanboy
Created July 19, 2017 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfdcfanboy/8f6498ed431bd0913c0bed8ab7d84947 to your computer and use it in GitHub Desktop.
Save sfdcfanboy/8f6498ed431bd0913c0bed8ab7d84947 to your computer and use it in GitHub Desktop.
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