What happens when before rule in business rules is run for Mandatory fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 09:25 PM
Not able to use Before Insert Business Rules on Mandatory Fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 09:31 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 09:47 PM
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:
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.
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