Skip to content

Instantly share code, notes, and snippets.

@diter14
Created July 16, 2018 16:50
Show Gist options
  • Save diter14/040c5173f37b9308069a4e69bdc8d2f9 to your computer and use it in GitHub Desktop.
Save diter14/040c5173f37b9308069a4e69bdc8d2f9 to your computer and use it in GitHub Desktop.
Account acc = Database.query('SELECT ' + String.join(new List<String>(Schema.getGlobalDescribe().get('Account').getDescribe().fields.getMap().keySet()), ',') + ' FROM Account');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment