+ Start a Discussion
Arthur Almeida 12Arthur Almeida 12 

how to assemble a map that has a list inside

I need to use this code:
List<Asset> assets = map.get(accountId);
For this, I created this map:
Map<Id, List<Asset>>
but I do not know how to assemble this map, I have a list of the Assets, and each Asset has a lookup of the Account

Best Answer chosen by Arthur Almeida 12
Arthur Almeida 12Arthur Almeida 12
this help me