When I am trying to update the map values, getting Compile Error: DML requires SObject or SObject list type: List>

This error means exactly what it says. An update DML statement requires a list of Sobject types, such as Account , Contact , etc. You are providing a List> , which is not the correct type.

Adchrg does not appear to be an Sobject, so you cannot perform DML on it in any case. Your Map appears to have the type Map> . Hence, its values() method returns List> .

answered Mar 5, 2018 at 18:28 David Reed David Reed 93.4k 13 13 gold badges 89 89 silver badges 162 162 bronze badges

You must log in to answer this question.

Related

Hot Network Questions

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.11.15092