I have a validation rule as follows:
AND( ISPICKVAL(Status__c,'Approved') ,ISBLANK( TEXT(Company__c) ))
I have an approval process that sets the Status field to Approved as its final approval step
If a record is approved but has a Blank value in Company, the approval is processed. The validation rule doesnt seem to be honored.
Do approval process steps honor validation rules? Or are validation rules only honored via the UI?
답변 3개
Chris, validation rules are honored both at the API level and UI level however Field updates (either via workflow rules or Approval processes) are an exception to this. I explained this in detail here:
https://success.salesforce.com/answers?id=906300000019KkpAAE
The same applies to approval processes.
If you want the validation to be respected, you should consider updating a field on the record as the final approval step and then triggering a Process based off it. Processes created via Process Builder do respect validation rules.