Last active
March 17, 2017 06:53
-
-
Save xgeek-net/9acb95eecd00f99e84c3a694bf53d3d1 to your computer and use it in GitHub Desktop.
Map keys to List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Id, Account> accountMap = new Map<Id, Account>([SELECT Id, Name FROM Account LIMIT 10]); | |
List<Id> idList = new List<Id>(); | |
for(Account acc : accountMap.keySet()){ | |
idList.add(acc.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment