Notification Rule
A notification rule says when the system should tell somebody something: on a date worked out from a record, or the moment a record is created or changed. The rule names the screen, the wording to send, who it goes to, and optionally a condition that has to be true first.
What it is for
Clients ask for two different kinds of reminder, and this one screen covers both.
The first is a date. Tell the line manager seven days before a probation ends. Tell HR thirty days before a contract expires. The rule picks a date off the record and counts forwards or backwards from it.
The second is an event. Tell the department head the moment a leave request is created. Tell payroll when a loan record is edited. There is no date here, only the thing that just happened.
Which of the two you get is the Notification Category, and the screen shows only the fields that kind of rule needs. A date rule asks which date, how many days, before or after, and at what time of day. An event rule asks which actions count.
A rule can also carry conditions, so that it fires only for the records the client cares about - only for the factory, only when the amount is above a limit. And it carries its own list of recipients, which can be a named user, a whole user group, or a plain email address for somebody who has no login.
Every field, in plain words
Header
| Field | What it means | What to put in it | Notes |
|---|---|---|---|
| Notification Rule | Your short code for the rule. | PROB-7DAY | Required. |
| Name | What the rule is called in the list. | Probation ending in 7 days | Required. |
| Process Code | The screen the rule watches. | Employee Basic Information | Required. A screen can have as many rules as you need. Picked from the list of screens. It locks after the record is created. |
| Notification Template | The wording that gets sent. | Probation ending reminder | Picked from Message Notification. Set the wording up there first. |
| Notification Category | Whether the rule runs on a date or on an event. | Base On Date | Required. D Base On Date, E Base On Event. It locks after the record is created, so pick carefully. |
If the category is Base On Date
| Field | What it means | What to put in it | Notes |
|---|---|---|---|
| Field | Which date on that screen the rule counts from. | Probation end date | Picked from the chosen screen's own field list. |
| Day | Whether the notification goes out before that date or after it. | Before | Before or After. |
| Execution Date | The day the rule starts. Nothing is sent before it. For a Week cycle it also gives the weekday, and for a Month cycle the day of the month. | Today | The number of days is set by the reminder days below, not here. |
| Execution Time | What time of day the notification goes out. | 09:00 | Pick a time the recipients are at work. Left empty, it goes at 08:30. It can arrive up to half an hour after the time set. |
| Execution Cycle | How often the rule checks the records. | Day | Day checks every day, the usual choice. Week checks on the weekday of the Execution Date, Month on its day of the month, and Once only on the Execution Date itself. A rule sends at most once a day. |
| Remind on these days | The days before or after the date on which a reminder goes. | 7 and On the day | 7, 3, 2, 1 days, or On the day. Each ticked day is one reminder. With none ticked, a Before rule reminds on every run until the date. |
If the category is Base On Event
Tick the actions on that screen that should raise the notification.
| Field | What it means | What to put in it | Notes |
|---|---|---|---|
| On Create | A new record is created. | Tick it for a request that somebody has to see straight away. | |
| On Edit | An existing record is changed. | Tick it where a change matters as much as the original, such as an amount being revised. | |
| On View | Somebody opens the record. | Leave it off unless the client is auditing who looked at what. | |
| On Delete | A record is deleted. | Tick it for anything a client wants a trail of. | |
| On Reverse | A record is reversed. | Tick it so the people told about the original are told it has been undone. |
Trigger Condition
Optional. Leave it empty and the rule fires for every record on that screen, in every company. To limit it to one company, add Legal Entity, is, and that company. Conditions test the top of the record, not its lines.
| Field | What it means | What to put in it | Notes |
|---|---|---|---|
| Trigger Rule | How this line joins the one before it. | When on the first line, And or OR after that | When for the first condition, And when both must hold, OR when either will do. |
| Field | Which field on the screen the condition tests. | Department | Picked from the chosen screen's own field list. |
| Condition | The test. | is | See the list below. |
| Value | What to test against. | Spinning |
Condition accepts: =, !=, <, <=, >, >=, is, isn't, starts with, ends with, contains, doesn't contain, is empty, is not empty, between, not between. Use = and the comparisons for numbers and dates, is and isn't for a picked value, the text tests for free text, and between for a range. between and not between work on date rules only; on an event rule, use two lines joined by And. On a date rule you can also test Days Left, the number of days to go or late.
Recipients
One line per person or group the notification goes to.
| Field | What it means | What to put in it | Notes |
|---|---|---|---|
| Base On | What kind of recipient this line is. | User Group | US User for one named user, UG User Group for everybody in a group, EM Email for an address outside the system, RC Record Column for whoever a field on the record names, such as Reporting To. Record Column works on date rules only and is ignored on event rules. |
| Base On Value | Which user, which group, or which address. | The HR Officers group | For User and User Group it is picked from a list. For Email it is typed, because the person has no login. For Record Column it is the field, which must hold a user name or an employee number; a person with no login, or a blocked one, is skipped. |
How to configure it
- Write the wording first on Message Notification, for the same screen. A rule with no wording sends nothing worth reading.
- Open Notification Rule and create a record. Type the code and the name.
- Pick the screen the rule watches, then the Notification Template you just wrote.
- Pick the Notification Category. Base On Date for a reminder, Base On Event for something that happens now. Both the screen and the category lock once the record is created.
- For a date rule, pick the date field, set Before or After, tick the reminder days, set the Execution Date and the time of day, and choose the cycle, usually Day.
- For an event rule, tick the actions that should raise it. On Create alone is right for most requests.
- If the client only wants the notification for some records, add Trigger Condition lines. Start the first with When.
- Add the Recipients. A user group is almost always better than a named user, because a named user leaving the company silently stops the notification.
- Save, then make one real record on the watched screen and check the notification arrives.
Scenarios
"The line manager should know a week before a probation ends"
A Base On Date rule on Employee Basic Information. Field is the probation date, Day is Before, reminder day 7 ticked, Execution Date today, Execution Time 09:00, Execution Cycle Day. Recipient is Record Column on the Reporting To field, so each manager hears about their own people only.
"HR must know the moment somebody applies for leave"
A Base On Event rule on the leave request screen with On Create ticked. Recipient is the HR Officers group. No dates at all.
"Only the factory, not the office"
Add a Trigger Condition line: When, the location or department field, is, and the factory value. The rule then fires for factory records and stays quiet for the rest.
"Our labour lawyer has no login but needs the disciplinary notices"
Add a recipient line with Base On set to Email and type the address. The notification is emailed without the person having a user account.
What it is connected to
- Needs Message Notification for the wording, and the wording must be written for the same screen.
- A screen can have several rules, for example one per reminder or one per company.
- The recipient groups come from the user and group setup, not from this screen.
- How to: Send a notification the moment a record is saved, changed or deleted
- How to: Send a reminder before or after a date on a record
- How to: Send one daily list instead of many emails
If something looks wrong
- "The save says the screen cannot be empty" - Process Code was left blank. The rule has to watch something.
- "The save says it already exists" - another rule already has that code. Give this one a new code.
- "I cannot change the screen or the category" - both lock once the record is created, because the rest of the record depends on them. Create a new rule.
- "The notification never arrives" - check in this order: is there a Notification Template on the rule, is there at least one recipient line, and do the Trigger Condition lines actually match the record you tested with. For a date rule, look at the Last check card first: Not run yet means the Execution Date is still ahead or the rule has not had its first run. A recipient with no email address on their user account gets no email.
- "Everybody is getting it and only the factory should" - there are no Trigger Condition lines, so the rule fires for every record.
- "The reminder keeps coming" - no reminder day is ticked, so a Before rule reminds on every run until the date: every day on a Day cycle, every week on a Week cycle. Tick the reminder days you want.
- "Some records were not reminded on a busy day" - a date rule handles at most 500 records a day. Narrow it with a condition or split it into two rules.