function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dnyaneshwar KakadDnyaneshwar Kakad 

what is different between ISBLANK() and ISNULL()?

Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

As per the Article (https://help.salesforce.com/s/articleView?id=sf.customize_functions_i_z.htm&type=5) ISBLANK() should be used instead of the legacy ISNULL(). 

Use ISBLANK instead of ISNULL in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce will continue to support ISNULL, so you do not need to change any existing formulas.

If this solution helps, Please mark it as best answer.

Thanks
Suraj Tripathi 47Suraj Tripathi 47

Hi Dnyaneshwar Kakad,

Please find the solution.

 ISBLANK() should be used instead of the legacy ISNULL(). The biggest difference having to do with text fields.

Use ISBLANK instead of ISNULL in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce will continue to support ISNULL, so you do not need to change any existing formulas.

Text fields are never null, so using ISNULL() with a text field always returns false. For example, the formula field IF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANK function instead.

You can take references from the below link:

https://help.salesforce.com/s/articleView?id=sf.customize_functions_i_z.htm&type=5 (https://help.salesforce.com/s/articleView?id=sf.customize_functions_i_z.htm&type=5)

Please mark it as the Best Answer if your queries are solved.

Thank You