function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jedi_101jedi_101 

how do i get a list of unique records?

I need to find unique values of a field I have added to my campaign objects.  How do I do this in SOQL?  Looks like there is no support for "DISCTINCT" or "UNIQUE" in select statements.

thanks!
Ron HessRon Hess
after getting a list from the system, you will have to step thru the elements and remove duplicates by building a fresh , unique list.