Docs
On this page
concept3 min readApplication: System Email

Outbound notifications

How outbound notifications decide when to send, who receives them, which channel they use and what the message says.

An outbound notification is a record that sends a message to people when a record is created or updated, or when a script asks for it. This page explains how notifications fire and are built, for administrators and developers who configure them.

What a notification is made of

An outbound notification lives under Administration → Messaging → Outbound notifications. It names the table it watches, when it fires, who receives it and how the message is built.

Part Field What it decides
Trigger point Table, Type The table whose records the notification watches, and whether it runs on create, update, both, or only from a script
Gate Active, Condition Whether the notification runs. An empty condition counts as true.
Audience Recipients, Send to initiator The users and addresses that receive it, and whether the person who made the change is one of them
Order Priority order Which notification wins when several match the same recipient
Delivery Version, provider configurations Which channels send it and with which template

When a notification fires

A notification only runs when something calls the notification engine. For record changes, a trigger on the table calls OutboundNotification.processNotifications(current, operation). Servicely ships these triggers:

Trigger Table
Work - Generate notifications Work
Workflow task - Generate notifications Workflow task
SLA - Generate notifications SLA
Interaction - Generate notifications Interaction
Knowledge - Generate notifications Knowledge

Tables that extend Work, such as Incident, use its trigger. For any other table, add an After trigger that runs on create and on update with the same script. See Triggers.

Type then filters by operation:

Type Runs when
Create A record is created
Update A record is updated
Create/Update Either happens
Scripted A script calls OutboundNotification.processDirectOutboundNotification

Scripted notifications can run from a trigger, a workflow or a job, and can receive context from the script. Notification recipients and content shows the call. To send the same message repeatedly while a condition holds, use Reminder generators instead.

How recipients are chosen

Recipients is a server script that sets answer to a list of users, user reference fields and email addresses. Servicely sends one message per address, even when an address appears more than once.

Candidate notifications run in Priority order, lowest first. For each recipient, the lowest priority order that matches wins. Notifications with the same priority order all send. A recipient already notified at a lower priority order is skipped by the later ones. Different recipients can therefore get different notifications from one update.

Send to initiator controls whether the user who made the change is notified. Updates that came from an inbound email Servicely judged to be an auto reply are ignored unless Process auto replies is on. This prevents mail loops.

Channels, providers and templates

Version chooses the engine. Enhanced Notifications (v2) sends one notification through several channels. Classic Email Notifications (v1) sends email only and keeps the subject and body on the notification. Classic (v1) notification fields lists its fields.

A v2 notification has one provider configuration per channel. Each configuration holds a Provider type, a Messaging template, and optional Messaging account, From and Context script scripts.

Provider type Sends through
Email An Email messaging account
Teams Microsoft Teams
WhatsApp WhatsApp

The Slack provider type appears when the Slack Integration application is installed. See Connect Slack.

The shipped notification “Incident - Has been created” with an Email and a Teams provider configuration, both using the template “Work - with Summary & Client Journal”.

A messaging template holds the subject and HTML body. Several notifications can share one template and pass their own values through context scripts. Templates flagged Outbound notification template are offered to notifications. Templates flagged Email client template are offered to agents in the email composer instead.

When a provider names no messaging account, email goes through the active Email account marked Default.

Replies and the watermark

Servicely appends a watermark such as servicely:MSG0000001: to each email it sends about a record. When someone replies, inbound processing reads the watermark and updates the same record. The notification.email.watermark.enabled property turns this on, and it is true by default. See Inbound messages.

Shipped notifications

Servicely ships notifications for incidents, requests, changes, problems, HR cases, knowledge, approvals and SLAs. Most ship inactive. The SLA pair, “SLA - Warning” and “SLA - Breached”, fire from the SLA trigger and are inactive until you activate them.

Last updated 24 November 2026commit 88e011e506a8Chris Jones
Back to top