Triggering a business rule when updating work notes

Tim Grindlay
Kilo Sage

Hi, 

I have a business rule for a problem record that requires a future target date on save, otherwise it displays an error message and aborts. When comments or work notes are posted (using the post button) to the activity feed and the target date is in the past, the error message doesn't display, it just aborts and doesn't post the entry. 

If the user hits the save button they get the error message. If I use an onChange client script for the work notes field, the appears for every character typed in the field, not just when clicking the post button. 

Any help appreciated.

Tim

1 ACCEPTED SOLUTION

Tim Grindlay
Kilo Sage

Actually I found another way to achieve the requirement. I can simply add a client script, UI policy or business rule that can display an error message. 

View solution in original post

5 REPLIES 5

I created 2 business rules. The first is triggered before insert and update. My conditions were: [my_date_field] is not empty and [my_date_field] is before the current minute and active is true. Action is: abort action.

The second business rule is triggered on display and has the same conditions as the first, but the action is to display an error message.