For example:
A validation rule exists if FieldA != FieldB
A user tries to create a record where FieldA == FieldB
Validation rule error appears on the user's UI
----> Error Log record gets created
Is there a way to accomplish this programmatically?
1 respuesta
I don't see why you cuoldn't do this with a trigger. You'd just have to fire the validations via the trigger instead of the UI. From the trigger, you could call a class to create the record as well.