Event triggers
Purpose
An event trigger sends a transactional message to the party when a document is posted. Triggers replace message template types 1–10 of the old system (MS3). All triggers start switched off until an authorised user turns them on.
Open the screen
- Menu: Messaging → Event triggers.
- Route:
/msg/triggers
Required permissions
| Action | Key | Label |
|---|
| View | msg.trigger.view | Message triggers - View |
| Turn on, edit and delete | msg.trigger.update | Message triggers - Update |
| Send a document or a statement on request | msg.document.send | Documents - Send by message |
Events
| Type in the old system | Event |
|---|
| 1 | Receipt voucher posted |
| 2 | Payment voucher posted |
| 3 | Sales invoice posted. Follows the invoice's branch: the branch's setting, the branch's provider account and the survey window (MS13) |
| 4 | Purchase invoice posted |
| 5 and 6 | Debit note posted and Credit note posted |
| 7 | Account statement (on request) |
| 8 | Cheque returned by the bank |
| 9 | Attendance recorded |
| 10 | POS sale. For point-of-sale sales to a named customer, with the device's branch (PB24) |
The two patient-visit types (11 and 12) were dropped. Type 999 (manual send) is replaced by sending a document on request and by bulk sends.
Fields
| Field | Description |
|---|
| On | Turns the trigger on |
| Channel | SMS, WhatsApp or E-mail |
| Branch | All branches or a specific branch. A branch setting replaces the company setting for that branch's documents |
| Template | The event's Standard template, or another transactional template |
| Attach the document | By e-mail, the document is attached as a PDF. By SMS and WhatsApp, a link to the document is sent |
| Use the party's preferred channel | Sends on the channel set in the channel preference instead of the chosen channel |
Set up a trigger
Turn on a trigger
- Select Set up on the event's row, or select the row.
- Choose the Channel, Branch and Template, and make sure On is selected.
- Select Save. To add another channel or branch for the same event, select Add channel or branch.
From then on, every posted document schedules a message to the party's number (or e-mail address), and the message appears in the message monitor.
Documents sent
- The document is printed with the print template assigned to it (S8).
- The document link in an SMS or WhatsApp message can't be guessed, stays valid for 30 days, and every time it's opened is recorded (MS9).
- Payslips and HR documents are never sent. Payslips are available only in self-service (HP17).
Business rules
- Triggers send transactional templates only, so they don't need marketing consent. They still aren't sent on a channel the party has blocked (MS1).
- Numbers are converted to international format using the company's country code, set in the messaging settings.
- No message is scheduled for a party with no number and no e-mail address.
Common error messages
| Message | Cause | What to do |
|---|
| A trigger for this event and channel already exists. | The setting already exists for the company or branch | Edit the existing setting |
| Triggers send transactional templates only. | A marketing template was chosen | Choose a transactional template |
| This document cannot be sent by message (payslips are never sent). | The document is protected | — |