for loop for map in salesforce code example
Example: 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
}
for (Id key : Map.keySet()) {
// The "key" variable is also available inside the loop
List<String> list = Map.get(key);
// logic
}