Appearance
Webhooks
A webhook tells another address when things happen on cases, such as a case being opened or its status changing. It can post to another system, to a Microsoft Teams channel, or to an Azure event hub or Microsoft Fabric Eventstream. Admin → Webhooks lists them, the events each is sent, how many are waiting, and whether each is sending, off or stopped.
Adding a webhook
Choose Add a webhook.
| Setting | |
|---|---|
| Name | Such as Case system or Legal team channel |
| How should events be sent? | As JSON, for another system; as a Microsoft Teams message, for people in a channel; or to an Azure event hub or a Microsoft Fabric Eventstream, for analysis |
| Address | Where events are posted. It must start with https:// and be on the public internet. For an event hub, its Connection string instead. |
| Which events should it be sent? | See below |
| Only cases of these types | Optional; choose none for every case type |
| Only entries in these registers | Optional; choose none for every register |
| Send events to this address | On or off |
Choose Add the webhook.
Events
| Event | Sent when |
|---|---|
case.created | A case is opened |
case.updated | A case's details change |
case.status-changed | A case's status changes |
case.closed | A case is closed |
case.assigned | A case is assigned |
case.note-added | A note is added |
case.document-added | A document is added |
case.email-received | An email is received on a case |
case.portal-message-received | A message comes in through the client portal |
case.approval-decided | A document is approved or rejected |
case.task-added | A task is added (with its due date) |
case.task-completed | A task is done |
case.key-date-added | A key date is added (its kind and date) |
case.key-date-changed | A key date changes or is marked done |
case.key-date-removed | A key date is removed |
case.document-state-changed | A document moves to another state under an information standard (its name, state, suitability and revision) |
case.transmittal-issued | Documents are issued in a transmittal (its reference and purpose) |
entry.created | A register entry is added |
entry.updated | A register entry's details change (which details) |
entry.archived | A register entry is archived |
entry.restored | A register entry is made current again |
entry.list-row-added | A row is added to one of an entry's lists (the list and row number) |
entry.list-row-changed | A row of one of an entry's lists changes |
entry.list-row-removed | A row is removed from one of an entry's lists |
entry.inspection-recorded | An inspection is recorded on an entry (its kind, date and when the next is due) |
entry.reading-level-changed | A reading on an entry reaches a new level, or goes back to normal (the measure, place and level) |
entry.alert-raised | An alert is raised on an entry (its kind and severity) |
entry.alert-cleared | An alert on an entry is cleared |
case.reading-alert | An entry a case names reaches a warning or alert level, or has an alert raised |
Events carry only identifiers, references, case types, statuses and dates: never personal details, titles, notes, what a message said or an approver's comment. The receiving system asks the public API for anything more, with its own permissions.
Every way a case changes sends its events: the screens, bulk changes, rules, emails and the API. Events about a register entry carry the entry's id, reference, register and whether it is archived, in data.entry, in place of data.case.
Signing
JSON events are signed with the webhook's signing secret, as the Standard Webhooks specification sets out (webhook-id, webhook-timestamp and webhook-signature headers), so the receiver can check they came from here. The secret is shown once when the webhook is added. Give it a new secret replaces it: events from then on are signed with the new one.
Teams
A Teams message shows the case's reference, type and status with a link to it. Use a channel's incoming webhook or a Power Automate flow's address.
Event Hubs and Fabric
Events can go to an Azure event hub, or to a Microsoft Fabric Eventstream's custom endpoint, which is an event hub too. Paste its connection string, as Azure or Fabric shows it, starting Endpoint=sb:// and including EntityPath. The system sends each event as the same JSON as any webhook, through Event Hubs' HTTPS interface, signed with the hub's own key, so there is no signing secret to give it. The key is kept encrypted and never shown again; to change it, paste a new connection string and save. Each case's or entry's events go to the same partition, so they stay in order. See Power BI and Microsoft Fabric.
Delivery
Events are queued in the same save as the change they report, so none is lost if the address or the system is down, and posted every 20 seconds. A failed delivery is retried for about a day. After ten give-ups in a row, or if the address answers that it is gone, the webhook stops: "Events have stopped. Fix the address, then save to start again."
Recent deliveries shows each event, its case, when, and whether it was delivered, is waiting (with the last problem) or gave up. Send again retries one that gave up, with the same event id (webhook-id), so the receiver can tell it is the same event. It is refused while the webhook is switched off. A webhook switched off sends nothing that was waiting ("Not sent: the webhook was switched off.") and queues nothing until it is on again. Send a test event sends a ping.
The address is checked again each time an event is sent: if its name has come to point inside a private network, nothing is sent and the delivery says so.
Removing a webhook
Remove this webhook: events not yet sent will not be sent, and the record of its deliveries goes too.