You need to sign in to do that
Don't have an account?
WellSky Integration User
How to check for null
Which is the correct syntax if I want to check for a specific record id and if the type field is not null?
if (a.RecordTypeId == '0125Y000001GTK4QAO' && a.Account_Type__c != 'null')
if (a.RecordTypeId == '0125Y000001GTK4QAO' && a.Account_Type__c != null)
Account_Type__c!='null' considers null as string and will fire if the field has nulll entered.
You should be using
Alternately, you can try in the validation rule
Related: https://support.veeva.com/hc/en-us/articles/115000220593-CRM-Validation-Rule-Works-Offline-but-Not-Online#
If this information helps, please mark the answer as best. Thank you