Answers for "salesforce soql to map"

0

salesforce soql to map

// Populate map from SOQL query
Map<ID, Account> m = new Map<ID, Account>([SELECT Id, Name FROM Account LIMIT 10]);
// After populating the map, iterate through the map entries
for (ID idKey : m.keyset()) {
    Account a = m.get(idKey);
    System.debug(a);
}
Posted by: Guest on March-29-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language