function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Map<String, Account> mapAccounts = new Map<String, Account>(); for(Account oAcc : [SELECT ID, Name FROM Account limit 10]){ mapAccounts.put(oAcc.Name, oAcc); }
Map<String, Account> mapAccounts = new Map<String, Account>(); for(Account oAcc : [SELECT ID, Name FROM Account ]) { mapAccounts.put(oAcc.Name, oAcc); }
Please try below one.
Thanks
Hemant