Skip to content

Instantly share code, notes, and snippets.

@capeterson
Last active August 29, 2015 14:17
Show Gist options
  • Save capeterson/721491e539606ba728d3 to your computer and use it in GitHub Desktop.
Save capeterson/721491e539606ba728d3 to your computer and use it in GitHub Desktop.
Account a = [SELECT id, name, description FROM Account LIMIT 1];
a.description = 'This code with person accounts on is like playing russion roulete';
update a; //DMLException if you got a person account, works otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment