5

I have to query task object to get the rows with subject not starting with 'Email' .

I have tried the given query. But it is not working . Please suggest.

select status, subject, whatId from task where subject  != 'Email:%'

also, there is nothing like NOT LIKE that I can use.

6

Can you try the following query

select status, subject, whatId from task where NOT subject LIKE 'Email:%'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.