Timeline for Why is record object with different id not used as key in Map?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 5, 2016 at 6:01 | comment | added | RajeshShah | I don't know why it prints only one. Also, its not advised to use the SObject as a key because the comparision would then be based on the fields in the SObject rather than the ID of the record. | |
May 5, 2016 at 5:59 | history | edited | RajeshShah | CC BY-SA 3.0 |
edited body
|
May 4, 2016 at 14:05 | comment | added | Martin.Kona | It really works. Is it safe to use sObject as key in map then? Why it doesnt print both of them? | |
May 4, 2016 at 11:54 | history | answered | RajeshShah | CC BY-SA 3.0 |