Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eddywebs/58df09d8fd53c92cc2b0337eb8883e64 to your computer and use it in GitHub Desktop.
Save eddywebs/58df09d8fd53c92cc2b0337eb8883e64 to your computer and use it in GitHub Desktop.
List<Id> accountids = new List<Id>();
accountids.addAll(new Map<Id, sObject>([select id from account where parentid='0016000000zK5N7AAK']).keyset());
system.debug(accountids);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment