I have an object which has around 105 fields, but for the validation rule I need to use 100 fields. I need the fields to be editable if not null by all the profiles. However, the admin can edit any number of times.
For now, I have started with
OR(
AND(
ISCHANGED(field_1__c),
NOT ISBLANK(PRIORVALUE(field_1__c))
),
AND(
ISCHANGED(field_2__c),
NOT ISBLANK(PRIORVALUE(field_2__c))
), ...
I understand the other condition should be something like this
AND
(
NOT(ISNEW()),
$Profile.Name <>'System Administrator'
)
Also while checking the syntax of the above rule(code snippet 1) , I am getting Formula too long error. How do I write both of them efficiently together?