How to fix it
- Navigate to
System Definition > Business Rulesand open your Business Rule. - Verify the
Whenfield matches your operation. If you're updating existing records, usebefore updateorafter update. If creating new records, usebefore insertorafter insert. - Check if the
Tablefield matches the exact table where you're saving records. If you need it to run on Incidents, selectIncident [incident], not the parent Task table. - Verify the
Activecheckbox is checked and theOrderfield has a reasonable value like100(lower numbers run first). - If you have custom JavaScript code, ensure the
Advancedcheckbox is checked. Without this, any code in theScriptfield will be ignored. - Review the
Conditionfield. If it contains a script likecurrent.state == 2, test if this condition is actually true when you save the record. - Click the
Filter Conditionstab. If you have filters set up, verify they match the actual field values on your test record. - Add debugging to your script. At the top of your Business Rule script, add
gs.info('BR firing: ' + current.number);to verify it's actually running. - Save the Business Rule and test by creating or updating a record that should trigger it.
- Check the logs by navigating to
System Logs > System Log > Allto see if your debug message appears or if there are any JavaScript errors.
Quick test: Set the Business Rule to run 'before insert' and 'before update' with a simple script like gs.addInfoMessage('Business Rule is working') to verify it fires before troubleshooting complex logic.