CRT-211 practice question 25 of 30

The support operations team has noticed some Invalid data In the custom Primary issue picklist field on case records. They are unsure of what the issue is since the field is being updated by an automated procedure and there Is a validation rule to ensure clean data on case records. Why arc records being updated with data that violates the validation rule?

Full set: 222 questions
Answer options
A: The data change Is triggered by an update record Flow element.
B: The field is being updated by a workflow field update. Correct answer
C: The field is being updated by an Apex before trigger.
D: The user has the Modify All Data permission on the object.
Correct Answer:
B. The field is being updated by a workflow field update.
Explanation

Salesforce's order of execution specifies that validation rules run before workflow rules. A field update performed by a workflow rule occurs after the initial validation rules have already been checked and passed. Consequently, a workflow rule can update a field with a value that would normally be blocked by a validation rule, effectively bypassing it. This is a known behavior and a common reason for finding data that violates validation criteria when workflow rules are in use.

Why Incorrect

A. Record-triggered flows and "Update Records" elements in flows execute within the standard transaction order and are subject to validation rules.
C. Apex before triggers run before validation rules, but the validation rules still run afterward and would catch the invalid data before the record is saved.
D. The "Modify All Data" permission allows a user to bypass sharing rules and field-level security, but it does not allow them to bypass validation rules.

References

1. Salesforce. (2023). Triggers and Order of Execution. "Step 8: Executes workflow rules. If there are workflow field updates, updates the record again. Step 9: If the record was updated with workflow field updates, fires before and after triggers one more time (and only one more time), and standard validation rules are not run again."

2. Salesforce Help. (2023). Create a Validation Rule. "Validation rules are not enforced on records updated by workflow rules and scheduled actions."

Scroll to Top