hi sfdcJoye you can do it by get(key) method here is example
Map<String, String> colorCodes = new Map<String, String>();
colorCodes.put('Red', 'FF0000');
colorCodes.put('Blue', '0000A0');
String code = colorCodes.get('Blue');
System.assertEquals('0000A0', code); // The following is not a color in the map String
i hop it helps you thanks mark it best answer if it helps you
hi sfdcJoye you can do it by get(key) method here is example
Map<String, String> colorCodes = new Map<String, String>();
colorCodes.put('Red', 'FF0000');
colorCodes.put('Blue', '0000A0');
String code = colorCodes.get('Blue');
System.assertEquals('0000A0', code); // The following is not a color in the map String
i hop it helps you thanks mark it best answer if it helps you
you can do it by get(key) method
here is example
i hop it helps you
thanks
mark it best answer if it helps you
All Answers
you can do it by get(key) method
here is example
i hop it helps you
thanks
mark it best answer if it helps you
1) http://amitsalesforce.blogspot.com/2016/09/collection-in-salesforce-example-using.html
Trigger using the Map:
Let us know if this will help you