New answers tagged

1

Have I overlooked something in the question and its accepted reply? On the face of it, cloning a whole map just in order to copy the first 5 elements looks dodgy. Suggestion: Map<String, Map<String, List<Custom_Object__c>>> limitedMap = new Map<String, Map<String, List<Custom_Object__c>>>(); Integer requiredElements = ...


1

The Collection Actions installable extension adds an action called Get First that may be what you're looking for.


Top 50 recent answers are included