Skip to main content

Send a notification the moment a record is saved, changed or deleted

An event rule watches one screen and sends a message the moment somebody creates, edits, opens, deletes or reverses a record on it. Conditions narrow it to the records the client cares about, and the recipients can be a user, a whole group or a plain email address.

Screen
Organization and Setup › Setup › Notification Rule, with Message Notification for the wording
Who
The implementation consultant
Needs first
The wording on Message Notification for the same screen; the user groups the message goes to

Before you start​

  • Write the wording first. See Write the wording of a notification.
  • Rules are shared by every company. A rule meant for one company needs a condition on the company: Legal Entity, is, and that company.
  • A screen can have as many rules as you like, each with its own wording, condition and recipients.
  • Approval messages (a request waiting for you, a request approved) are set on the approval chain, not here.

Steps​

  1. Open Notification Rule and create a record with a code and a name.
  2. Pick the screen to watch and the Notification Template (the wording).
  3. Pick Base On Event as the Notification Category. The screen and the category lock once the rule is saved.
  4. Tick the actions that should send it: On Create for most requests, On Edit where a change matters, On Delete or On Reverse for a trail. Tick at least one, or the save is refused.
  5. Add conditions if only some records count. First line When, then And or OR, for example Department, is, Production.
  6. Add recipients, one line each: User for one login, User Group for everybody in a group, Email for an address with no login. A group is safer than a named user, who stops receiving it when they leave.
  7. Save. Read the sentence at the top of the screen: it says the rule back in words, and any warning under it is a mistake to fix.
  8. Test by saving one real record on the watched screen.

Check it worked​

  • The recipients receive the message within moments of the save, with the record's details filled in.
  • A record that does not meet the condition sends nothing.

If it goes wrong​

  • "The screen cannot be empty". Pick the screen to watch.
  • "Already exists". The code is taken. Choose another code; a second rule on the same screen is fine.
  • The save is refused about actions. No action is ticked. Tick at least one.
  • Nothing arrives. Check in order: a wording is picked, there is at least one recipient, the condition matches the test record, and the recipient's user account has an email address.
  • Everybody gets it, only one department should. There is no condition. Add one.
  • Both companies' records send it. Rules watch every company. Add the condition Legal Entity, is, and the company.
  • A warning says Record Column lines are ignored. Naming "the person on the record" works on date rules only. On an event rule, use a user or group.
  • A warning says Days Left never matches. Days Left belongs to date rules. Remove it from an event rule.
  • I need "between" on an event rule. Not supported on event rules. Use two lines joined with And: greater than or equal to, and less than or equal to.
  • I want to test a field on the record's lines. Conditions test the top of the record only.