Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking for Blank Date field in Salesforce

How do I check if a field is Blank in Salesforce using SOQL.

Thanks

like image 399
Kunal Deo Avatar asked Apr 26 '11 02:04

Kunal Deo


Video Answer


1 Answers

SOQL has support for NULL values, so you should be able to query as you do with regular SQL. For example:

SELECT column
FROM table
WHERE date_field = NULL

Notice the use of = NULL instead of IS NULL as you would find in SQL.

like image 158
Brian Willis Avatar answered Sep 18 '22 09:09

Brian Willis