Tuesday, 30 July 2013

How to Use NOT LIKE keyword in SOQL Query


To get the count of users from sales force where the email address of the user doesn't belongs some specific domain, let's say 'abcd'

Here is the SOQL

Select count() from User where NOT email like '%@abcd.com'

1 comment:

  1. "Hi,
    I like your blog very much! It is found me so interesting and informative... Thanks very much for sharing this amazing information over here…"

    PIC Scheme Singapore