Skip to main content
We've put several validation rules in place to prevent the creation of a record if the data is not consistent with our standards. I'd like to track instances where users are trying to create records and encounter a validation error in the UI. We have an Error Log object and I'd like records to be created here.

 

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 件の回答
  1. 2021年6月11日 16:15
    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.
0/9000