A developer writes a business rule to run on 'before' update of the Incident table. The rule sets a short description only if it is empty. However, the short description is never set even when it's empty. What is the most likely cause?
Trap 1: The business rule runs after the database update.
Business rules can run before or after; the issue is not timing but the method used to set the field.
Trap 2: The condition 'short_description IS EMPTY' is evaluated on the old…
The condition checks the current record's value, which is empty before the update.
Trap 3: The business rule is set to run on insert only.
The rule is set to run on update, as described.
- A
The developer used gs.setValue() instead of current.setValue().
gs.setValue() is not a valid method; current.setValue() must be used to set field values in business rules.
- B
The business rule runs after the database update.
Why wrong: Business rules can run before or after; the issue is not timing but the method used to set the field.
- C
The condition 'short_description IS EMPTY' is evaluated on the old value.
Why wrong: The condition checks the current record's value, which is empty before the update.
- D
The business rule is set to run on insert only.
Why wrong: The rule is set to run on update, as described.