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
Joseph KennedyJoseph Kennedy 

Validation does not fire when record is created unless 'ISNEW()' present in rule.

Hey Devs, 

Can someone explain what is happening on the back end of Salesforce to cause a validation rule not to fire unless 'ISNEW()' is encorporated?

I'm curious to know why it needs to be added when I call out a created date? Any insight here would be great.
 
Best Answer chosen by Joseph Kennedy
Raj VakatiRaj Vakati
You can do it without using the IsNew also .. its hack .. 

Check the record Id Is null or not .. If null you can consider it as New Record else not new 

coming to the IsNew()  , this is the only way salesforce identity the record is new or not  .. if you want to fire any validtion on new , its recommended to include isNew()