Skip to content

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
NameSuch 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
AddressWhere 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 typesOptional; choose none for every case type
Only entries in these registersOptional; choose none for every register
Send events to this addressOn or off

Choose Add the webhook.

Events ​

EventSent when
case.createdA case is opened
case.updatedA case's details change
case.status-changedA case's status changes
case.closedA case is closed
case.assignedA case is assigned
case.note-addedA note is added
case.document-addedA document is added
case.email-receivedAn email is received on a case
case.portal-message-receivedA message comes in through the client portal
case.approval-decidedA document is approved or rejected
case.task-addedA task is added (with its due date)
case.task-completedA task is done
case.key-date-addedA key date is added (its kind and date)
case.key-date-changedA key date changes or is marked done
case.key-date-removedA key date is removed
case.document-state-changedA document moves to another state under an information standard (its name, state, suitability and revision)
case.transmittal-issuedDocuments are issued in a transmittal (its reference and purpose)
entry.createdA register entry is added
entry.updatedA register entry's details change (which details)
entry.archivedA register entry is archived
entry.restoredA register entry is made current again
entry.list-row-addedA row is added to one of an entry's lists (the list and row number)
entry.list-row-changedA row of one of an entry's lists changes
entry.list-row-removedA row is removed from one of an entry's lists
entry.inspection-recordedAn inspection is recorded on an entry (its kind, date and when the next is due)
entry.reading-level-changedA reading on an entry reaches a new level, or goes back to normal (the measure, place and level)
entry.alert-raisedAn alert is raised on an entry (its kind and severity)
entry.alert-clearedAn alert on an entry is cleared
case.reading-alertAn 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.

Genera: case management for UK public sector organisations