0 votes
1 view
in Salesforce by (11.9k points)

I want to know what all the existing values of a field are.

In SQL that would be something like:

SELECT DISTINCT foo

FROM bar

How might I do this with salesforce's SOQL?

1 Answer

0 votes
by (30.1k points)

Use Group by:

SELECT foo

FROM bar

GROUP BY foo

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...