SOQL Distinct solution

I have been looking for a SOQL distinct solution and how you can get only unique values from a SOQL expression. So I went about writing a method to return distinct values from a SObject. Call the distinct method as follows: SOQLUtils.distinct(‘StageName’, ‘Opportunity’) and it will return all the distinct StageNames for all your Opportunities. […]

Rate this:

Read More