E-mail digests & alerts
Path: HR Analytics Subscriptions, Organizational Unit card → HR Analytics FactBox
Beyond the on-screen indicators, HR Analytics can push results to people by e-mail: scheduled digests and immediate alerts. This keeps managers informed without opening Business Central.
Subscriptions
A subscription says who receives what and how often. Manage them on the HR Analytics Subscriptions page (admins see all; each user sees a "My subscriptions" view). There are three types:
| Type | Who gets it | Content |
|---|---|---|
| User Digest | A named user | The indicators flagged Include in Digest, in their configured order — the same composition as the Monthly Digest indicator. |
| Unit Manager Digest | The manager of an organizational unit | That unit's Department Report Card, including rolled-up child units (sent for the units that have a card — see the Org. Unit Group Level note in Composite analytics). The recipient is resolved at send time from the unit's Manager No., so changing the manager is picked up automatically. |
| Critical Alert | A named user | A consolidated message when indicators cross into a chosen severity. |
Each subscription carries:
- Frequency (digests) — On Period Close, Weekly, or Monthly.
- Minimum Severity (alerts) — send when an indicator reaches at least this severity (default Critical).
- Recipient E-Mail Override — an explicit address, otherwise resolved from the user/employee record.
- Language Code — the digest is rendered in the recipient's language.
- Include Payroll Amounts — admin-editable only. Because background sending cannot check the recipient's permissions the way a screen can, including salary amounts in e-mail is an explicit, per-subscription decision. By default salary indicators are excluded from e-mails.
- Include AI Summary — prepends an AI-generated narrative to the digest.
Handy actions: Subscribe all unit managers (creates a Unit Manager Digest for every unit that has a manager — idempotent), Preview e-mail (shows the e-mail the selected subscription would receive now, rendered as the recipient sees it, with the recipient address — nothing is sent) and Send test e-mail (sends it immediately). For a Critical Alert subscription, the preview and the test e-mail list every current result at or above its Min. Severity, as if they had all just crossed it; a test alert does not change which real alerts are sent later.
How delivery works
- User & Unit Manager digests are composed and mailed by the background job on their schedule (or when a payroll period is closed, for On Period Close). Each line shows the indicator, a trend arrow and a severity colour. Person-level indicators are never e-mailed; salary indicators are skipped unless Include Payroll Amounts is on.
- Critical alerts fire when an indicator's severity transitions into the chosen level after a calculation — you get one consolidated e-mail per run, not one per indicator. Severities that stay the same or improve are silent.
- Sending uses the standard Business Central Email setup — the same SMTP account selection as the rest of SMART Payroll's employee mailing. No separate mail configuration is needed.
- Delivery is error-isolated per recipient: one bad address cannot stop the batch. Failures are recorded on the subscription's Last Send Status and in telemetry.
What the e-mail looks like
Digests and alerts share one layout that reads well in Outlook and on phones: a header band with the company name and the e-mail title (blue for digests, red for critical alerts), a greeting, then one row per indicator with a coloured bar for its severity and a trend arrow (▲ up, ▼ down, ● no comparison). A unit manager's report card is shown as a title row with the unit's score followed by one row per figure. The AI summary, when enabled, appears above the indicators with its headings and highlighted phrases formatted. The footer states the as-of date. A custom body template that places %[KpiLines] gets the same indicator rows.