Back
why do we use maps in triggers instead of lists ? please help with few examples advantage of using maps.
You can directly use the Map for getting any record. You don't need 2nd for a loop.Scenarios:1) When moving line items from one opportunity to other opportunities we need to use the map2) to determine whether an old value is changed or not in a trigger we need to use the map
You can learn more about Triggers In Salesforce.
31k questions
32.8k answers
501 comments
693 users