Apex Snippet: Getting Unique Field Values for a List of Records
Here’s a simple utility method that will return the set of values for a given field within a list of records. It’s useful, for example, when you need to find all the Accounts referenced by a list of Contacts. Or to find the unique Status… Read More »Apex Snippet: Getting Unique Field Values for a List of Records