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
eswar R 1eswar R 1 

How you will write Validation rule for above scenario while inserting the record and Validation rule should not fire while updating form workflow it show be accept.

Roshni RahulRoshni Rahul
Hi Eswar,

Can you explain your scenario..
eswar R 1eswar R 1
My scenario is

while inserting the record  Validation rule should not fire but  while updating form workflow it show be accept.

Hi Eswar 

You can check the record is new or existing one using ISNEW() function in formula.

IF( !ISNEW() , Your validation logic, false);
      AND(! ISNEW() ,Your validation logic)

Please let me know, if it helps you.

Best Regards,
Akhil AnilAkhil Anil
Hey Iswar,

You can use the ISNEW() function for the validation rule to be triggered only on record creation. Another point to be noted is that validation rules are never triggered when a record is updated through a workflow. So you really need not explicitly put any logic for that in your validation formula.

Please check the point no 12 in the below link which clearly exlpains that validation rules are not re-triggered on workflow field updates.