What happens when before rule in business rules is run for Mandatory fields

AnubhavS
Tera Expert

Not able to use Before Insert Business Rules on Mandatory Fields.

2 REPLIES 2

Vishwa Pandya19
Mega Sage

Hi Anubhav,

 

Can you share what the BR is actually doing or what error you are facing?

Some screenshots might help too to solve your query.

Maddysunil
Kilo Sage

@AnubhavS 

When a "before" business rule runs for mandatory fields, it executes before the record is saved, allowing you to perform actions or validations before the record is committed to the database. However, there are some important considerations to keep in mind:

  1. Execution Timing: "Before" business rules execute when a record is being saved but before the actual save operation occurs. This means that any changes made to the record within the "before" business rule will be included in the save operation.

  2. Mandatory Field Validation: If a field is marked as mandatory (required), the system will validate that the field has a value before allowing the save operation to proceed. If the field is left empty or has an invalid value after the "before" business rule executes, the system will prevent the save operation and display an error message to the user indicating that the mandatory field must be populated.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks