Webhooks

Webhooks in Cezanne allow you to integrate key information with other platforms in real time. When an event happens in Cezanne (e.g. a change to an Address record), a webhook will automatically notify the connected platform (sometimes known as an endpoint). Events include adding new records, editing records, and deleting records. These events are split into categories based on the record type and are known as triggers in the system.

To use webhooks, you must set up a webhook for each platform or endpoint and activate it by enabling specific triggers which will set the webhook off.

This article explains how to set up and activate webhooks in the following sections:

  1. Add a new Webhook
  2. Configure a Webhook's Triggers

1. Add a new Webhook

Navigate to: Administration >> Setup & Security >> Integrations >> Webhooks.

  1. Click Add New at the bottom of the screen:
1. Enter a Name for your webhook.
    • You may want to specify what the webhook is being used for e.g. the name of the platform your webhook will be sent to.

2. Enter your webhook's endpoint URL (must be an HTTPS link).

3. Enter an Authentication Key, or generate a random one using the Generate button.

    • This will be used as a verification for the app receiving the data.
4. (Optional) tick the Suspended box if you want to temporarily suspend the use of the webhook.
    • You can also suspend it at any point after setting it up using this checkbox.
    • Once it has been suspended, use the same checkbox to enable it again.
5. Click Save.

2. Configure a Webhook's Triggers

After your Webhook Details have been set up and saved as above, the Triggers tab will appear:

Triggers define which actions or events will set off your webhook. There are types of trigger, each of which corresponds to a record within Cezanne. If a trigger is enabled, the webhook will be initiated when its corresponding record has been inserted, updated or deleted in the system.

For example: if the 'Addresses' trigger is enabled and an Address record is updated, the data for the change will be automatically sent to your endpoint through your webhook.

Enabling triggers

To enable Addresses, Bank Details, Communications, Marital Status, Person Details and Person Development Activities triggers:

  1. Click on a trigger to open the slide over (e.g. Addresses).
  2. Tick the Enable checkbox.
  3. Click Save and Close.

Note:

  • Absences, Leavers and New Hires triggers require extra steps. See the sections below for details.

Absences trigger configuration

When enabling the Absences trigger, more configuration options are given to narrow down which types of absences can trigger the webhook and when.

To enable the Absences trigger you must:

  1. Tick the Enabled checkbox.
  2. Tick at least one Category.
  3. Tick at least one Status.
  4. Click Save and Close.

For example, if you want to enable triggers for Approved Holiday and Sickness Absences, you would check the Enabled, Holiday, Sickness and Approved boxes:

This configuration would mean any time a Holiday or Sickness request was Approved or an Approved Holiday or Sickness record was edited, the webhook would be automatically triggered.

Note:

  • To enable the trigger for all Absences, you must tick all the checkboxes on the screen.
  • You will get the following Error message if you try to save the trigger with Enabled ticked and no Category and / or Status selected: 'You cannot save with this configuration, please refer to the documentation for more details.'
  • When an Absence record changes status, the webhook will be triggered for the Status the absence is entering into, e.g: if Approval Pending is ticked and a Draft Absence is submitted for approval, the webhook will be triggered.
  • If an absence plan is deleted that has been selected in the configurations (with Deleted status ticked), a webhook will be sent for each absence deleted within the plan.
  • If the Holiday Category is selected, publishing a Compulsory Holiday will trigger the webhook.

Leavers / New Hires trigger configurations

When enabling the Leavers and New Hires triggers, a further configuration option is available for when the webhook should be triggered.

To enable a Leavers or New Hires trigger you must:

  1. Tick the Enabled checkbox.
  2. Select either Trigger Real-time or Trigger Overnight.*
  3. Click Save and Close.

*Selecting 'Trigger Real-time' means the trigger will be sent automatically as soon as a Leaver or New Hire record has been added, changed or deleted. Selecting 'Trigger Overnight' means all triggers for Leavers and New Hires that happen in a day will be sent that night.

Note:

  • If you only tick Enabled, or tick all three boxes, you will get the following Error message: 'You cannot save with this configuration, please refer to the documentation for more details.'