You need to sign in to do that
Don't have an account?
Nandhini S 3
How to get a specific field value from map?
Hi Guys,
I have a map, map<id, List<customObject>>.
How to get a specifc custom field of the custom object from the map?
I have a map, map<id, List<customObject>>.
How to get a specifc custom field of the custom object from the map?
Hello!
You can retrieve the values from a especific key or in a loop:
or
More information you can get in this link:
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm
let say we have dummymap
map<id,List<Dummy__c>> = new dummymap<id,List<Dummy__c>>();
Let say we want to take value of dummyfield__c from Dummy__c
for(id id:dummymap.keyset()){
string fieldvalue = dummymap.get(id).dummyfield__c;
}
Hope it helps , else paste your code
Thanks for replying. What would be the index to get the customfield value.