You need to sign in to do that
Don't have an account?

"Does Not Contain" operator help
Our app provides query functionality against the Lead and Contact objects, similar to the "Create a new view" mechanism in salesforce.com. We are looking for a way to include an operator for "does not contain" but it appears that the API documentation does not provide information to make this happen.
Does anyone know of a way to handle this, short of pulling all data first and then excluding everyone that falls into the "contains" collection?
Does anyone know of a way to handle this, short of pulling all data first and then excluding everyone that falls into the "contains" collection?
Hi Scot,
The SOQL does not work if we add additional criteria in the statement as follows:
Select Id, LastName from User where not LastName like '%a%' and city != null
OR
Select Id, LastName from User where city != null and not LastName like '%a%'
It seems like it Is not supported in SFDC.