Answers for "apex iterate map"

1

loop through map apex

for (Id key : Map.keySet()) {
    // The "key" variable is also available inside the loop
    List<String> list = Map.get(key);
    //  logic
}
Posted by: Guest on June-05-2020
0

how to iterate map in apex salesforce

for(Id id: mapname.keyset()){
    Set<String> stringset= mapname.get(id);
    for(String a: stringset){
         sendMail(a);
   }
Posted by: Guest on April-27-2020

Browse Popular Code Answers by Language